aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qprocess_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/qprocess_test.py')
-rw-r--r--tests/QtCore/qprocess_test.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/QtCore/qprocess_test.py b/tests/QtCore/qprocess_test.py
new file mode 100644
index 000000000..b01c68ba3
--- /dev/null
+++ b/tests/QtCore/qprocess_test.py
@@ -0,0 +1,16 @@
+#!/usr/bin/python
+'''Test cases for QProcess'''
+
+import unittest
+import os
+
+from PySide.QtCore import *
+
+class TestQProcess (unittest.TestCase):
+ def testStartDetached(self):
+ value, pid = QProcess.startDetached("dir", [], os.getcwd())
+ self.assert_(isinstance(value, bool))
+ self.assert_(isinstance(pid, long))
+
+if __name__ == '__main__':
+ unittest.main()