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