diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-31 10:59:04 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-31 11:47:33 -0300 |
commit | b9bf521a93785ccd935cc4ce1464cb612c4fdbfe (patch) | |
tree | 8e941851a2e04b50d772ec11a09c6c6d0146a9cc | |
parent | a44c2b9792b183819871617d04be24319721f77f (diff) |
Unittest to bug #324.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
-rw-r--r-- | tests/QtGui/qpushbutton_test.py | 11 |
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() |