diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-15 10:44:27 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-15 11:33:41 -0300 |
commit | 87ea5d920c62eed3e9c1185fa66740c13c71f65b (patch) | |
tree | 4653548a4b7050c85f481864c5c8d8d42bb4a975 /tests/QtCore/setprop_on_ctor_test.py | |
parent | cd7dac40f758f821514693c6d7d4c449a9f81240 (diff) |
Fix bug#347 - "Setting properties in constructors gives incorrect results"
Added new function to libpyside: "fillQtProperties".
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'tests/QtCore/setprop_on_ctor_test.py')
-rw-r--r-- | tests/QtCore/setprop_on_ctor_test.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/QtCore/setprop_on_ctor_test.py b/tests/QtCore/setprop_on_ctor_test.py new file mode 100644 index 000000000..bd4426cd1 --- /dev/null +++ b/tests/QtCore/setprop_on_ctor_test.py @@ -0,0 +1,12 @@ +#!/usr/bin/python +import unittest +from PySide.QtCore import * + + +class SetPropOnCtorTest(unittest.TestCase): + def testIt(self): + obj = QEventTransition(targetStates = [QState()]) + self.assertEqual(len(obj.targetStates()), 1); + +if __name__ == '__main__': + unittest.main() |