Exemplo n.º 1
0
 def testBoundingBox(self):
     layout = Layout([(0,1), (2,7)])
     self.assertEqual(layout.bounding_box(), BoundingBox(0,1,2,7))
     self.assertEqual(layout.bounding_box(1), BoundingBox(-1,0,3,8))
Exemplo n.º 2
0
 def testBoundingBox(self):
     layout = Layout([(0, 1), (2, 7)])
     self.assertEqual(layout.bounding_box(), BoundingBox(0, 1, 2, 7))
     self.assertEqual(layout.bounding_box(1), BoundingBox(-1, 0, 3, 8))
     layout = Layout([])
     self.assertEqual(layout.bounding_box(), BoundingBox(0, 0, 0, 0))
Exemplo n.º 3
0
 def testBoundingBox(self):
     layout = Layout([(0, 0, 1), (0, 1, 0), (1, 0, 0), (2, 1, 3)])
     self.assertEqual(layout.bounding_box(), (0, 0, 0, 2, 1, 3))
     self.assertEqual(layout.bounding_box(1), (-1, -1, -1, 3, 2, 4))