Ejemplo n.º 1
0
 def test_should_indicate_not_be_empty_with_non_zero_width_and_height(self):
     bounding_box = BoundingBox(0, 0, 100, 100)
     assert not bounding_box.is_empty()
     assert bounding_box
Ejemplo n.º 2
0
 def test_should_indicate_empty_with_zero_width(self):
     bounding_box = BoundingBox(0, 0, 0, 100)
     assert bounding_box.is_empty()
     assert not bounding_box