diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-06-03 15:34:17 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-06-10 14:57:41 -0300 |
commit | e39bfefde9edda662f51eeaf9a482f209c7f1217 (patch) | |
tree | a4add52f8ca3460fcaed99c6d9c7fc810f341a49 /tests/QtCore/qobject_property_test.py | |
parent | 24a944590663582df72aefd1929ec19ba3c6414f (diff) |
Remove wrapper for classes: QString, QStringRef, QLatin1String, QStringMatcher, QChar and QLatin1Char.
Diffstat (limited to 'tests/QtCore/qobject_property_test.py')
-rw-r--r-- | tests/QtCore/qobject_property_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/QtCore/qobject_property_test.py b/tests/QtCore/qobject_property_test.py index 33df2ac9b..d1f12b343 100644 --- a/tests/QtCore/qobject_property_test.py +++ b/tests/QtCore/qobject_property_test.py @@ -3,7 +3,7 @@ import unittest -from PySide.QtCore import QObject, QVariant, QString +from PySide.QtCore import * class PropertyCase(unittest.TestCase): '''Test case for QObject properties''' @@ -41,14 +41,14 @@ class PropertyCase(unittest.TestCase): # QVariant.toInt has a bool* arg in C++, so returns a tuple self.assertEqual(obj.property('dummy').toInt(), (42, True)) - def testQStringProperty(self): + def testStringProperty(self): obj = QObject() - self.assert_(not obj.setProperty('dummy', QString('data'))) + self.assert_(not obj.setProperty('dummy', 'data')) prop = obj.property('dummy') self.assert_(isinstance(prop, QVariant)) self.assert_(prop.isValid()) - self.assertEqual(obj.property('dummy').toString(), QString('data')) + self.assertEqual(obj.property('dummy').toString(), 'data') def testImplicitQVariantProperty(self): obj = QObject() |