Created unit test to QVariant converstion of QStringList.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
533cdcd07b
commit
8ea5127ccb
2 changed files with 25 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
PYSIDE_TEST(bug_278_test.py)
|
||||||
PYSIDE_TEST(blocking_signals_test.py)
|
PYSIDE_TEST(blocking_signals_test.py)
|
||||||
PYSIDE_TEST(child_event_test.py)
|
PYSIDE_TEST(child_event_test.py)
|
||||||
PYSIDE_TEST(deletelater_test.py)
|
PYSIDE_TEST(deletelater_test.py)
|
||||||
|
|
|
||||||
24
tests/QtCore/bug_278_test.py
Normal file
24
tests/QtCore/bug_278_test.py
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from PySide import QtCore
|
||||||
|
|
||||||
|
def setValue(o):
|
||||||
|
values = ['Name']
|
||||||
|
o.setProperty('test1', values)
|
||||||
|
|
||||||
|
class QQtVersionTest(unittest.TestCase):
|
||||||
|
'''Tests for QVariant conversion of QStringList'''
|
||||||
|
|
||||||
|
def testGet(self):
|
||||||
|
o = QtCore.QObject()
|
||||||
|
setValue(o)
|
||||||
|
self.assertEqual(o.property('test1'), ['Name'])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue