Esempio n. 1
0
 def test_west(self):
     point = Point(1, 2)
     self.assertEqual(point.in_direction(W), Point(0, 2))
Esempio n. 2
0
 def test_south(self):
     point = Point(1, 2)
     self.assertEqual(point.in_direction(S), Point(1, 1))
Esempio n. 3
0
 def test_east(self):
     point = Point(1, 2)
     self.assertEqual(point.in_direction(E), Point(2, 2))
Esempio n. 4
0
 def test_north(self):
     point = Point(1, 2)
     self.assertEqual(point.in_direction(N), Point(1, 3))