diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-07-13 17:53:59 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-07-14 11:52:22 -0300 |
commit | 28d0c480b15d566cabfb63dc6cc65697dc5b5edc (patch) | |
tree | de7552186585d4b6adef6191b5f6339a90bab202 /tests/QtGui/bug_243.py | |
parent | 95c7699ae37c0c4a10d606405230000cfae99bde (diff) |
Create unit test to bug 243.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
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() |