def test_simple_corners(self): """Test returning the corners of a shape containing a single point""" origin = Point(4, 4) shape = Shape.I1(origin) self.assertEqual(shape.corners(), origin.corners())
def test_corners(self): """Test a point's corners""" point = Point(4, 4) corners = {Point(5, 5), Point(3, 5), Point(3, 3), Point(5, 3)} self.assertEqual(point.corners(), corners)