Tests synchronized with the boost python PySide.

This commit is contained in:
Hugo Lima 2009-12-15 15:37:20 -02:00
commit 3deada6b7e
14 changed files with 329 additions and 8 deletions

View 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()