aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-02 14:53:01 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-02 15:30:44 -0300
commit09876a43863e7846ce514ae94d2ad0056a32bc67 (patch)
tree9204c4ca095f930458f39b44089a2acd48df4a74 /tests
parentd4f911f5b377b6847bd6309e3f6c5aa00a3690bd (diff)
Created unit test to bug #274.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtGui/qaction_test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/QtGui/qaction_test.py b/tests/QtGui/qaction_test.py
index b926ad692..0379d20b7 100644
--- a/tests/QtGui/qaction_test.py
+++ b/tests/QtGui/qaction_test.py
@@ -16,6 +16,14 @@ class QPainterDrawText(UsesQApplication):
act.trigger()
self.assert_(self._called)
+ def testNewCtor(self):
+ o = QWidget()
+ self._called = False
+ myAction = QAction("&Quit", o, triggered=self._cb)
+ myAction.trigger()
+ self.assert_(self._called)
+
+
if __name__ == '__main__':
unittest.main()