blob: b01c68ba392ce2295a739a730469ed47011a64ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()
|