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