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