From 3525b77d69937938aa285f84b995a3a2d8685cce Mon Sep 17 00:00:00 2001 From: renatofilho Date: Wed, 22 Sep 2010 16:59:04 -0300 Subject: Created unit test for bug #376. Reviewer: Luciano Wolf Marcelo Lira --- tests/QtUiTools/bug_376.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/QtUiTools/bug_376.py (limited to 'tests/QtUiTools/bug_376.py') diff --git a/tests/QtUiTools/bug_376.py b/tests/QtUiTools/bug_376.py new file mode 100644 index 000000000..2bd6b5ca2 --- /dev/null +++ b/tests/QtUiTools/bug_376.py @@ -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() + -- cgit v1.2.3