diff options
Diffstat (limited to 'tests/QtGui/qapp_test.py')
-rw-r--r-- | tests/QtGui/qapp_test.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtGui/qapp_test.py b/tests/QtGui/qapp_test.py new file mode 100644 index 000000000..c371492e6 --- /dev/null +++ b/tests/QtGui/qapp_test.py @@ -0,0 +1,17 @@ + +''' Test the presence of qApp Macro''' + +import unittest + +from PySide import QtGui + +class QAppPresence(unittest.TestCase): + + def testQApp(self): + #QtGui.qApp variable is instance of QApplication + self.assert_(isinstance(QtGui.qApp, QtGui.QApplication)) + + +if __name__ == '__main__': + app = QtGui.QApplication([]) + unittest.main() |