Create unit test for bug #467.
This commit is contained in:
parent
6cefd33cd0
commit
c21497ec1a
2 changed files with 20 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ PYSIDE_TEST(bug_416.py)
|
||||||
PYSIDE_TEST(bug_429.py)
|
PYSIDE_TEST(bug_429.py)
|
||||||
PYSIDE_TEST(bug_430.py)
|
PYSIDE_TEST(bug_430.py)
|
||||||
PYSIDE_TEST(bug_433.py)
|
PYSIDE_TEST(bug_433.py)
|
||||||
|
PYSIDE_TEST(bug_467.py)
|
||||||
PYSIDE_TEST(customproxywidget_test.py)
|
PYSIDE_TEST(customproxywidget_test.py)
|
||||||
PYSIDE_TEST(deepcopy_test.py)
|
PYSIDE_TEST(deepcopy_test.py)
|
||||||
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
|
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
|
||||||
|
|
|
||||||
19
tests/QtGui/bug_467.py
Normal file
19
tests/QtGui/bug_467.py
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
''' Test bug 367: http://bugs.openbossa.org/show_bug.cgi?id=467'''
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
from helper import UsesQApplication
|
||||||
|
from PySide.QtGui import QMainWindow, QApplication
|
||||||
|
|
||||||
|
class MyWidget(QMainWindow):
|
||||||
|
def __init__(self, parent = None):
|
||||||
|
QMainWindow.__init__(self, parent)
|
||||||
|
|
||||||
|
|
||||||
|
class BugTest(UsesQApplication):
|
||||||
|
def testCase(self):
|
||||||
|
w = MyWidget()
|
||||||
|
widgets = QApplication.allWidgets()
|
||||||
|
self.assert_(w in widgets)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue