blob: ce50431a10758684e4ba62543589cdc5e4d30ead (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import unittest
from PySide import QtGui, QtCore
class Properties(unittest.TestCase):
def testStaticProperty(self):
self.assertEqual(QtGui.QGraphicsItem.UserType, 65536)
def testMemberProperty(self):
i = QtGui.QGraphicsItem()
self.assertEqual(i.UserType, 65536)
def testInstanceProperty(self):
p = QtGui.QStyleOptionViewItemV3()
self.assert_(isinstance(p.locale, QtCore.QLocale))
if __name__ == '__main__':
unittest.main()
|