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,16 @@
#!/usr/bin/python
'''Test cases for QEnum and QFlags'''
import unittest
from PySide.QtCore import QThread, Qt
class TestHANDLE(unittest.TestCase):
def testIntConversion(self):
i = 0
h = QThread.currentThreadId()
i = 0 + int(h)
self.assertEqual(i, int(h))
if __name__ == '__main__':
unittest.main()