aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/grandparent_method_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/grandparent_method_test.py')
-rw-r--r--tests/QtGui/grandparent_method_test.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/QtGui/grandparent_method_test.py b/tests/QtGui/grandparent_method_test.py
new file mode 100644
index 000000000..3c1829377
--- /dev/null
+++ b/tests/QtGui/grandparent_method_test.py
@@ -0,0 +1,23 @@
+
+'''Tests for calling methods further than the direct parent'''
+
+import unittest
+
+from PySide.QtGui import QPushButton, QWidget
+
+from helper import UsesQApplication
+
+class Dummy(QPushButton):
+
+ def show(self):
+ QWidget.show(self)
+ self.called = True
+
+class GrandParentMethod(UsesQApplication):
+ def testMethod(self):
+ obj = Dummy()
+ obj.show()
+ self.assert_(obj.called)
+
+if __name__ == '__main__':
+ unittest.main()