aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtcore
diff options
context:
space:
mode:
authorLuciano Wolf <luciano.wolf@openbossa.org>2010-01-19 17:28:28 -0300
committerLuciano Wolf <luciano.wolf@openbossa.org>2010-01-19 17:28:28 -0300
commit23ee9d02262a44deb48cc8b713ea66ba9a25c085 (patch)
treeda29fc046797838245151d3cf192da53520d5d05 /tests/qtcore
parent908559869385846c00954ebf40343aff5359790f (diff)
Adding a buffer test (copied from PySide trunk).
Diffstat (limited to 'tests/qtcore')
-rw-r--r--tests/qtcore/buffer_test.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/qtcore/buffer_test.py b/tests/qtcore/buffer_test.py
new file mode 100644
index 000000000..2917232a1
--- /dev/null
+++ b/tests/qtcore/buffer_test.py
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import unittest
+from PySide.QtCore import QString
+
+class BufferTest(unittest.TestCase):
+ def testQByteArray(self):
+ data = buffer("PySide")
+ str = QString(data)
+ self.assertEqual(data, str)
+
+if __name__ == '__main__':
+ unittest.main()