Example #1
0
 def test_shift(self):
     _x = 5
     _y = 120
     point0 = Point(_x, _y, random.choice(self.marks))
     point0.shift_point(816, 80085)
     self.assertEqual((_x + 816, _y + 80085), point0.getPoint())
Example #2
0
 def test_shift(self):
     testPoint=Point(1,4)
     shift_x=10
     shift_y=10
     testPoint.shift_point(shift_x,shift_y)
     self.assertEqual((testPoint.x,testPoint.y),(11,14))