summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-13 17:53:59 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-07-14 11:52:22 -0300
commit28d0c480b15d566cabfb63dc6cc65697dc5b5edc (patch)
treede7552186585d4b6adef6191b5f6339a90bab202 /tests
parent95c7699ae37c0c4a10d606405230000cfae99bde (diff)
downloadpyside-28d0c480b15d566cabfb63dc6cc65697dc5b5edc.tar.gz
pyside-28d0c480b15d566cabfb63dc6cc65697dc5b5edc.tar.xz
pyside-28d0c480b15d566cabfb63dc6cc65697dc5b5edc.zip
Create unit test to bug 243.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtGui/CMakeLists.txt1
-rw-r--r--tests/QtGui/bug_243.py18
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index b875913..5ebd754 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -1,6 +1,7 @@
#Keep this in alphabetical sort
PYSIDE_TEST(api2_test.py)
+PYSIDE_TEST(bug_243.py)
PYSIDE_TEST(add_action_test.py)
PYSIDE_TEST(customproxywidget_test.py)
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
diff --git a/tests/QtGui/bug_243.py b/tests/QtGui/bug_243.py
new file mode 100644
index 0000000..eb9f9d6
--- /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()