diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-09-30 15:35:49 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-09-30 17:25:38 -0300 |
commit | 846c9a151f23ec727540f1bda8d6b43609f5ad43 (patch) | |
tree | 6cbe141916001d8a09019e76a6f74d4d5cb86458 /tests/QtUiTools | |
parent | 44af04703081f529c433f0fbc5229e9e0d12304f (diff) | |
download | pyside-846c9a151f23ec727540f1bda8d6b43609f5ad43.tar.gz pyside-846c9a151f23ec727540f1bda8d6b43609f5ad43.tar.xz pyside-846c9a151f23ec727540f1bda8d6b43609f5ad43.zip |
Unit test for bug #392.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/QtUiTools')
-rw-r--r-- | tests/QtUiTools/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtUiTools/bug_392.py | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/QtUiTools/CMakeLists.txt b/tests/QtUiTools/CMakeLists.txt index 9ede81f..7cb8b6a 100644 --- a/tests/QtUiTools/CMakeLists.txt +++ b/tests/QtUiTools/CMakeLists.txt @@ -1,4 +1,5 @@ PYSIDE_TEST(bug_360.py) PYSIDE_TEST(bug_376.py) +PYSIDE_TEST(bug_392.py) PYSIDE_TEST(uiloader_test.py) PYSIDE_TEST(ui_test.py) diff --git a/tests/QtUiTools/bug_392.py b/tests/QtUiTools/bug_392.py new file mode 100644 index 0000000..ebda08c --- /dev/null +++ b/tests/QtUiTools/bug_392.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__), 'action.ui') + result = loader.load(filePath, w) + self.assertEqual(type(result.statusbar.actionFoo), QtGui.QAction) + +if __name__ == '__main__': + unittest.main() + |