def test_conform_to_rect(self):
     s1 = Shape([(-20, 20), (0, 20), (0, -40), (-20, -40)])
     bottom_left = Point(0, 0)
     top_right = Point(50, 50)
     plot_rectangle(bottom_left, top_right, display=False)
     s2 = s1.conform_to_rect(bottom_left, top_right)
     plot_shape([s1, s2])
     npt.assert_equal(s2.axis_means(), np.array([25, 25]))