Added all original pyside unit tests to the shiboken version.

This commit is contained in:
Hugo Lima 2009-09-21 14:51:26 -03:00
commit 9af36fbb64
160 changed files with 6616 additions and 12 deletions

View file

@ -0,0 +1,24 @@
#!/usr/bin/python
'''Test cases for QtCore.QEvent'''
import unittest
from PySide.QtCore import QEvent
class QEventTypeFlag(unittest.TestCase):
'''Test case for usage of QEvent.Type flags'''
def testFlagAccess(self):
#QEvent.Type flags usage
event = QEvent(QEvent.Timer)
self.assertEqual(event.type(), QEvent.Timer)
event = QEvent(QEvent.Close)
self.assertEqual(event.type(), QEvent.Close)
event = QEvent(QEvent.IconTextChange)
self.assertEqual(event.type(), QEvent.IconTextChange)
if __name__ == '__main__':
unittest.main()