Created unit test to bug #274.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
d4f911f5b3
commit
09876a4386
1 changed files with 8 additions and 0 deletions
|
|
@ -16,6 +16,14 @@ class QPainterDrawText(UsesQApplication):
|
||||||
act.trigger()
|
act.trigger()
|
||||||
self.assert_(self._called)
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue