aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-31 10:59:04 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-31 11:47:33 -0300
commitb9bf521a93785ccd935cc4ce1464cb612c4fdbfe (patch)
tree8e941851a2e04b50d772ec11a09c6c6d0146a9cc /tests
parenta44c2b9792b183819871617d04be24319721f77f (diff)
Unittest to bug #324.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtGui/qpushbutton_test.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/QtGui/qpushbutton_test.py b/tests/QtGui/qpushbutton_test.py
index 984960879..e7f81e664 100644
--- a/tests/QtGui/qpushbutton_test.py
+++ b/tests/QtGui/qpushbutton_test.py
@@ -25,6 +25,17 @@ class QPushButtonTest(UsesQApplication):
timer = QTimer.singleShot(100, self.app.quit)
self.app.exec_()
+ def buttonCb(self, checked):
+ self._clicked = True
+
+ def testBoolinSignal(self):
+ b = QPushButton()
+ b.setCheckable(True)
+ self._clicked = False
+ b.toggled[bool].connect(self.buttonCb)
+ b.toggle()
+ self.assert_(self._clicked)
+
if __name__ == '__main__':
unittest.main()