aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLuciano Wolf <luciano.wolf@openbossa.org>2010-02-22 11:41:11 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-23 20:06:38 -0300
commitd131b85ce4ff300dece894a9672355b3f00451e4 (patch)
tree395560c606eb4ce5b2c08ecd577305f52359e868 /tests
parent6d8b1440a37bbe6d8eedcfbe420acab15c21b8ac (diff)
Enable support for >> and << operators (QtCore.QTextStream).
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/qtcore/qtextstream_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qtcore/qtextstream_test.py b/tests/qtcore/qtextstream_test.py
index 3ce198b4e..13dc6516c 100644
--- a/tests/qtcore/qtextstream_test.py
+++ b/tests/qtcore/qtextstream_test.py
@@ -22,6 +22,13 @@ class QTextStreamShiftTest(unittest.TestCase):
self.assert_(isinstance(res, QString))
self.assertEqual(res, QString('4'))
+ def testString(self):
+ self.write << QString('Test_it!')
+ self.write.flush()
+ res = QString()
+ self.read >> res
+ self.assertEqual(res, QString('Test_it!'))
+
class QTextStreamGetSet(unittest.TestCase):
def setUp(self):