def test_set(self): lazy_pointshape = PointShape() pl = [Point(1, 2), Point(2,3), Point(4,5)] lazy_pointshape.point_list = pl self.assertTrue(pl == lazy_pointshape.point_list)
def test_translate(self): self.__four_points.translate(1, 1) translated = PointShape() translated.point_list = [Point(4, 5), Point(6, 2), Point(9, 11), Point(7, 10)] self.assertTrue(self.__four_points.__eq__(translated))