Created unit test for bug #376.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
fccfafe71f
commit
3525b77d69
2 changed files with 20 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
PYSIDE_TEST(bug_360.py)
|
PYSIDE_TEST(bug_360.py)
|
||||||
|
PYSIDE_TEST(bug_376.py)
|
||||||
PYSIDE_TEST(uiloader_test.py)
|
PYSIDE_TEST(uiloader_test.py)
|
||||||
PYSIDE_TEST(ui_test.py)
|
PYSIDE_TEST(ui_test.py)
|
||||||
|
|
|
||||||
19
tests/QtUiTools/bug_376.py
Normal file
19
tests/QtUiTools/bug_376.py
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
import unittest
|
||||||
|
import os
|
||||||
|
from helper import UsesQApplication
|
||||||
|
|
||||||
|
from PySide import QtCore, QtGui
|
||||||
|
from PySide.QtUiTools import QUiLoader
|
||||||
|
|
||||||
|
class BugTest(UsesQApplication):
|
||||||
|
def testCase(self):
|
||||||
|
w = QtGui.QWidget()
|
||||||
|
loader = QUiLoader()
|
||||||
|
|
||||||
|
filePath = os.path.join(os.path.dirname(__file__), 'test.ui')
|
||||||
|
result = loader.load(filePath, w)
|
||||||
|
self.assertEqual(type(result.child_object), QtGui.QFrame)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue