diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-04-13 20:55:01 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:10 -0300 |
commit | 640a428c9bf4f415924a56b4e0054706f57a3b65 (patch) | |
tree | 77cfb0386d3fc13a3a4a3b80ccfa0ba2c3892b65 /tests/QtGui | |
parent | 000a3232453a64922eab53ec496c361aed365b49 (diff) |
Created unit test for bug #743.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'tests/QtGui')
-rw-r--r-- | tests/QtGui/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtGui/bug_743.py | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt index aa0b2da38..bd59fb9c8 100644 --- a/tests/QtGui/CMakeLists.txt +++ b/tests/QtGui/CMakeLists.txt @@ -49,6 +49,7 @@ PYSIDE_TEST(bug_722.py) PYSIDE_TEST(bug_728.py) PYSIDE_TEST(bug_736.py) PYSIDE_TEST(bug_740.py) +PYSIDE_TEST(bug_743.py) PYSIDE_TEST(bug_793.py) PYSIDE_TEST(customproxywidget_test.py) PYSIDE_TEST(deepcopy_test.py) diff --git a/tests/QtGui/bug_743.py b/tests/QtGui/bug_743.py new file mode 100644 index 000000000..0957fccc2 --- /dev/null +++ b/tests/QtGui/bug_743.py @@ -0,0 +1,15 @@ +import unittest + +from PySide.QtGui import QMatrix4x4 + +class TestQMatrix(unittest.TestCase): + def testOperator(self): + m = QMatrix4x4(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16) + v = 1 + for x in range(4): + for y in range(4): + self.assertEqual(m[x,y], v) + v += 1 + +if __name__ == '__main__': + unittest.main() |