Beispiel #1
0
 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())
Beispiel #2
0
 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)