diff options
Diffstat (limited to 'tests/QtGui/bug_243.py')
-rw-r--r-- | tests/QtGui/bug_243.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/QtGui/bug_243.py b/tests/QtGui/bug_243.py new file mode 100644 index 000000000..eb9f9d639 --- /dev/null +++ b/tests/QtGui/bug_243.py @@ -0,0 +1,18 @@ + +''' Test bug 243: http://bugs.openbossa.org/show_bug.cgi?id=243''' + +import unittest +import sys + +from PySide.QtGui import QApplication, QMainWindow, QLayout + +class QAppPresence(unittest.TestCase): + + def testBug(self): + app = QApplication(sys.argv) + window = QMainWindow() + l = window.layout() + self.assert_(isinstance(l, QLayout)) + +if __name__ == '__main__': + unittest.main() |