Create unit test for bug #998.
Reviewed by: Hugo Parente <hugo.lima@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
parent
bfcc30ab86
commit
f7b0dca2cb
2 changed files with 11 additions and 0 deletions
10
tests/QtGui/bug_998.py
Normal file
10
tests/QtGui/bug_998.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import unittest
|
||||
from PySide.QtGui import QApplication
|
||||
|
||||
class TestBug998 (unittest.TestCase):
|
||||
def testNoFocusWindow(self):
|
||||
widget = QApplication.focusWidget()
|
||||
self.assertTrue(widget == None)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue