def test_point_is_in_square_polygon(self): square = Polygon(make_square_vertices(side_length=2, center=(0, 0))) # Assert expected = True actual = square.point_in_convex_polygon((0, 0)) self.assertEqual(expected, actual)
def test_point_not_in_square_polygon(self): # Arrange square = Polygon(make_square_vertices(side_length=2, center=(0, 0))) # Act expected = False actual = square.point_in_convex_polygon((3, 3)) # Assert self.assertEqual(expected, actual)