diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-05 18:10:23 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-06 19:11:11 -0300 |
commit | a5b2237ee0a7a894e1eac4e2c0f4b270866a059a (patch) | |
tree | 22ced4e4a694f8ed9477fba2062e11806f3c2e7f /tests/qtcore/qstring_test.py | |
parent | 826678cb91124784339c2a92118e82413ef03b5c (diff) |
None is convertible to QString, the result is a QString where QString.isNull is true.
Diffstat (limited to 'tests/qtcore/qstring_test.py')
-rw-r--r-- | tests/qtcore/qstring_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qtcore/qstring_test.py b/tests/qtcore/qstring_test.py index 193ef0910..9bb68a3ed 100644 --- a/tests/qtcore/qstring_test.py +++ b/tests/qtcore/qstring_test.py @@ -105,6 +105,10 @@ class QStringConstructor(unittest.TestCase): self.assertEqual(obj1, obj2) + def testNullQString(self): + s = QString(None) + self.assertTrue(s.isNull()) + def testQStringFromPy(self): #QString(const char*) sample = 'a new string' |