diff options
Diffstat (limited to 'tests/QtGui/python_properties_test.py')
-rw-r--r-- | tests/QtGui/python_properties_test.py | 15 |
1 files changed, 15 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..7d6c024e7 --- /dev/null +++ b/tests/QtGui/python_properties_test.py @@ -0,0 +1,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() |