diff options
author | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-02-18 17:26:37 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-02-19 18:43:46 -0300 |
commit | 5bf7e701e7f598287a460682ad4468a2460a9932 (patch) | |
tree | 23016b8885118a32b296e6d00340c3a405b3de0e /tests | |
parent | 1b943ab43c730b28b7dc3acbdc8d6d5a737cf4ad (diff) |
Support QPoint(QPoint) constructor.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtcore/qpoint_test.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/qtcore/qpoint_test.py b/tests/qtcore/qpoint_test.py new file mode 100644 index 000000000..dfce76939 --- /dev/null +++ b/tests/qtcore/qpoint_test.py @@ -0,0 +1,21 @@ + +'''Test cases for QPoint and QPointF''' + +import unittest + +from PySide.QtCore import QPoint, QPointF + + +class QPointTest(unittest.TestCase): + + def testQPointCtor(self): + point = QPoint(QPoint(10,20)) + +class QPointFTest(unittest.TestCase): + + def testQPointFCtor(self): + pointf = QPointF(QPoint(10,20)) + +if __name__ == '__main__': + unittest.main() + |