aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/qapp_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/qapp_test.py')
-rw-r--r--tests/QtGui/qapp_test.py17
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()