Enable support for >> and << operators (QtCore.QTextStream).
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
parent
6d8b1440a3
commit
d131b85ce4
2 changed files with 8 additions and 6 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue