# pywinauto.tests.missalignment[¶](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.tests.missalignment.html#pywinauto-tests-missalignment "Permalink to this headline")
> Missalignment Test
>
> **What is checked** This test checks that if a set of controls were aligned on a particular axis in the reference dialog that they are all aligned on the same axis.
>
> **How is it checked** A list of all the reference controls that are aligned is created (ie more than one control with the same Top, Left, Bottom or Right coordinates). These controls are then analysed in the localised dialog to make sure that they are all aligned on the same axis.
>
> **When is a bug reported** A bug is reported when any of the controls that were aligned in the reference dialog are no longer aligned in the localised control.
>
> **Bug Extra Information** The bug contains the following extra information Name Description AlignmentType This is either LEFT, TOP, RIGHT or BOTTOM. It tells you how the controls were aligned in the reference dialog. String AlignmentRect Gives the smallest rectangle that surrounds ALL the controls concerned in the bug, rectangle
>
> **Is Reference dialog needed** This test cannot be performed without the reference control. It is required to see which controls should be aligned.
>
> **False positive bug reports** It is quite possible that this test reports false positives: 1. Where the controls only just happen to be aligned in the reference dialog (by coincidence) 2. Where the control does not have a clear boundary (for example static labels or checkboxes) they may be miss-aligned but it is not noticeable that they are not.
>
> **Test Identifier** The identifier for this test/bug is “Missalignment”
>
> `pywinauto.tests.missalignment.``MissalignmentTest`(*windows*)[¶](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.tests.missalignment.html#pywinauto.tests.missalignment.MissalignmentTest "Permalink to this definition")
>
> Run the test on the windows passed in
- 什么是Pywinauto
- 入门指南
- 如何
- 等待长时间操作
- 远程执行指南
- 每种不同控制类型可用的方法
- 贡献者
- 开发笔记
- 待办项目
- 更新日志
- 基本用户输入模块
- pywinauto.mouse
- pywinauto.keyboard
- 主要用户模块
- pywinauto.application
- pywinauto.findbestmatch
- pywinauto.findwindows
- pywinauto.timings
- 特定功能
- pywinauto.clipboard
- pywinauto.win32_hooks
- 控件参考
- pywinauto.base_wrapper
- pywinauto.controls.hwndwrapper
- pywinauto.controls.menuwrapper
- pywinauto.controls.common_controls
- pywinauto.controls.win32_controls
- pywinauto.controls.uiawrapper
- pywinauto.controls.uia_controls
- Pre-supplied Tests
- pywinauto.tests.allcontrols
- pywinauto.tests.asianhotkey
- pywinauto.tests.comboboxdroppedheight
- pywinauto.tests.comparetoreffont
- pywinauto.tests.leadtrailspaces
- pywinauto.tests.miscvalues
- pywinauto.tests.missalignment
- pywinauto.tests.missingextrastring
- pywinauto.tests.overlapping
- pywinauto.tests.repeatedhotkey
- pywinauto.tests.translation
- pywinauto.tests.truncation
- 后端内部实施模块
- pywinauto.backend
- pywinauto.element_info
- pywinauto.win32_element_info
- pywinauto.uia_element_info
- pywinauto.uia_defines
- 内部模块
- pywinauto.controlproperties
- pywinauto.handleprops
- pywinauto.xml_helpers
- pywinauto.fuzzydict
- pywinauto.actionlogger
- pywinauto.sysinfo
- pywinauto.remote_memory_block