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