Support QPoint(QPoint) constructor.

Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
Luciano Wolf 2010-02-18 17:26:37 -03:00 • committed by Marcelo Lira
commit 5bf7e701e7
2 changed files with 27 additions and 0 deletions

View file

@ -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()