aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBruno dos Santos de Araujo <bruno.araujo@openbossa.org>2010-02-18 12:18:57 -0400
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-19 18:13:11 -0300
commit65f6f78008d4f961c9ebe5d8047b0f2c742fe15f (patch)
treedcb7afd5c855046c05fc31f88fb772bdb1264eba /tests
parent9f47f2174215eb49f3060669db66c7145e2ee7e5 (diff)
Add unittest for QInputDialog.getXXX() methods
Diffstat (limited to 'tests')
-rw-r--r--tests/qtgui/qinputdialog_get_test.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/qtgui/qinputdialog_get_test.py b/tests/qtgui/qinputdialog_get_test.py
new file mode 100644
index 000000000..5b2b66ed4
--- /dev/null
+++ b/tests/qtgui/qinputdialog_get_test.py
@@ -0,0 +1,25 @@
+import unittest
+
+from PySide import QtCore, QtGui
+from helper import UsesQApplication, TimedQApplication
+
+class TestInputDialog(TimedQApplication):
+
+ def testGetDouble(self):
+ QtGui.QInputDialog.getDouble(None, "title", "label")
+
+ def testGetInt(self):
+ QtGui.QInputDialog.getInt(None, "title", "label")
+
+ def testGetInteger(self):
+ QtGui.QInputDialog.getInteger(None, "title", "label")
+
+ def testGetItem(self):
+ QtGui.QInputDialog.getItem(None, "title", "label", QtCore.QStringList(["1", "2", "3"]))
+
+ def testGetText(self):
+ QtGui.QInputDialog.getText(None, "title", "label")
+
+if __name__ == '__main__':
+ unittest.main()
+