Example #1
0
 def test_clone(self):
     point = Point(2, 4)
     new_point = point.clone()
     self.assertEqual(point, new_point)
     point.move_to(0, 0)
     self.assertNotEqual(point, new_point)
Example #2
0
 def test_change_coordinates(self):
     point = Point(3, 4)
     point.move_to(2, 0)
     self.assertEqual(point.x, 2)
     self.assertEqual(point.y, 0)