Created unit test for bug 428.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
7a439f4d21
commit
62fd909705
2 changed files with 19 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
PYSIDE_TEST(bug_278_test.py)
|
PYSIDE_TEST(bug_278_test.py)
|
||||||
PYSIDE_TEST(bug_332.py)
|
PYSIDE_TEST(bug_332.py)
|
||||||
PYSIDE_TEST(bug_408.py)
|
PYSIDE_TEST(bug_408.py)
|
||||||
|
PYSIDE_TEST(bug_428.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(deepcopy_test.py)
|
PYSIDE_TEST(deepcopy_test.py)
|
||||||
|
|
|
||||||
18
tests/QtCore/bug_428.py
Normal file
18
tests/QtCore/bug_428.py
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from PySide.QtCore import QObject
|
||||||
|
|
||||||
|
class MyBaseObject(QObject):
|
||||||
|
def __init__(self, number):
|
||||||
|
self.myMember = 'myMember' + number
|
||||||
|
QObject.__init__(self)
|
||||||
|
|
||||||
|
class QObjectConstructorTest(unittest.TestCase):
|
||||||
|
def testBug(self):
|
||||||
|
for i in range(10):
|
||||||
|
number = str(i)
|
||||||
|
obj = MyBaseObject(number)
|
||||||
|
self.assertEqual(obj.myMember, 'myMember' + number)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue