Tests synchronized with the boost python PySide.
This commit is contained in:
parent
84282e06ac
commit
3deada6b7e
14 changed files with 329 additions and 8 deletions
18
tests/qtcore/qprocess_test.py
Normal file
18
tests/qtcore/qprocess_test.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/python
|
||||
'''Test cases for QProcess'''
|
||||
|
||||
import unittest
|
||||
import os
|
||||
|
||||
from PySide.QtCore import *
|
||||
|
||||
class TestQProcess (unittest.TestCase):
|
||||
def testStartDetached(self):
|
||||
tuple_ = QProcess.startDetached("dir", [], os.getcwd())
|
||||
self.assertEquals(tuple, tuple_.__class__)
|
||||
(value, pid) = tuple_
|
||||
self.assertEquals(bool, value.__class__)
|
||||
self.assertEqual(long, pid.__class__)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue