diff options
Diffstat (limited to 'tests/QtCore/qbytearray_test.py')
-rw-r--r-- | tests/QtCore/qbytearray_test.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/QtCore/qbytearray_test.py b/tests/QtCore/qbytearray_test.py index 20bba1400..1c425b8e9 100644 --- a/tests/QtCore/qbytearray_test.py +++ b/tests/QtCore/qbytearray_test.py @@ -5,7 +5,7 @@ import unittest import ctypes import sys -from PySide.QtCore import QByteArray +from PySide.QtCore import * class QByteArrayTestToNumber(unittest.TestCase): def testToNumberInt(self): @@ -91,8 +91,10 @@ class QByteArrayOperatorAtSetterLargeIndex(unittest.TestCase): obj[10] = 'normal' self.assertEqual(obj, QByteArray('mystring normal')) - - +class QByteArrayOnQVariant(unittest.TestCase): + def testQByteArrayOnQVariant(self): + a = QSettings().value("some_prop", QByteArray()) + self.assertEqual(type(a), QByteArray) if __name__ == '__main__': unittest.main() |