diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-21 14:51:26 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-21 14:52:09 -0300 |
commit | 9af36fbb64f19842c0cc797c0b586b3a686805e8 (patch) | |
tree | 6bbc050ded0f85517ea75f5dc6dc1ed172168248 /tests/qtcore/qdatastream_test.py | |
parent | aa12538d63685ef8f75adaa79411b751929b727d (diff) |
Added all original pyside unit tests to the shiboken version.
Diffstat (limited to 'tests/qtcore/qdatastream_test.py')
-rw-r--r-- | tests/qtcore/qdatastream_test.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/qtcore/qdatastream_test.py b/tests/qtcore/qdatastream_test.py new file mode 100644 index 000000000..d2fcb6d81 --- /dev/null +++ b/tests/qtcore/qdatastream_test.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +'''Unit tests for QDataStream''' + +import unittest + +from PySide.QtCore import QDataStream, QBuffer + +class QDataStreamTest(unittest.TestCase): + '''Test case for QByteArray.split''' + + def testWriteFunction(self): + b = QBuffer() + b.open(QBuffer.ReadWrite) + ds = QDataStream(b) + ds.writeUInt8(chr(True)) + self.assertEqual(b.buffer().at(0), chr(True)) + + +if __name__ == '__main__': + unittest.main() |