aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/python_properties_test.py
blob: 7d6c024e7eba147061e69941317b7bfe65afb2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import unittest
from PySide import QtGui, QtCore

class Properties(unittest.TestCase):

    def testStaticProperty(self):
        self.assertEqual(QtGui.QGraphicsItem.UserType, 65536)

    def testInstanceProperty(self):
        p = QtGui.QStyleOptionViewItemV3()
        self.assert_(isinstance(p.locale, QtCore.QLocale))


if __name__ == '__main__':
    unittest.main()