Adding a buffer test (copied from PySide trunk).
This commit is contained in:
parent
9085598693
commit
23ee9d0226
1 changed files with 13 additions and 0 deletions
13
tests/qtcore/buffer_test.py
Normal file
13
tests/qtcore/buffer_test.py
Normal file
|
|
@ -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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue