From 5bf7e701e7f598287a460682ad4468a2460a9932 Mon Sep 17 00:00:00 2001 From: Luciano Wolf Date: Thu, 18 Feb 2010 17:26:37 -0300 Subject: Support QPoint(QPoint) constructor. Reviewed by Marcelo Lira --- tests/qtcore/qpoint_test.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/qtcore/qpoint_test.py (limited to 'tests') 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() + -- cgit v1.2.3