diff options
Diffstat (limited to 'tests/qtgui/python_properties_test.py')
-rw-r--r-- | tests/qtgui/python_properties_test.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/qtgui/python_properties_test.py b/tests/qtgui/python_properties_test.py new file mode 100644 index 000000000..ce50431a1 --- /dev/null +++ b/tests/qtgui/python_properties_test.py @@ -0,0 +1,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() |