Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_bbox_covers(self):
b1 = (0, 0, 10, 10)
b2 = (0, 0, 20, 10)
b3 = (0, 0, 5, 11)
self.assertFalse(bounding.covers(b1, b2))
self.assertTrue(bounding.covers(b2, b1))
self.assertFalse(bounding.covers(b1, b3))
self.assertFalse(bounding.covers(b3, b1))
self.assertTrue(bounding.covers(b3, b3))
def test_bbox_covers(self):
b1 = (0, 0, 10, 10)
b2 = (0, 0, 20, 10)
b3 = (0, 0, 5, 11)
self.assertFalse(bounding.covers(b1, b2))
self.assertTrue(bounding.covers(b2, b1))
self.assertFalse(bounding.covers(b1, b3))
self.assertFalse(bounding.covers(b3, b1))
self.assertTrue(bounding.covers(b3, b3))
def test_bbox_covers(self):
b1 = (0, 0, 10, 10)
b2 = (0, 0, 20, 10)
b3 = (0, 0, 5, 11)
self.assertFalse(bounding.covers(b1, b2))
self.assertTrue(bounding.covers(b2, b1))
self.assertFalse(bounding.covers(b1, b3))
self.assertFalse(bounding.covers(b3, b1))
self.assertTrue(bounding.covers(b3, b3))
def test_bbox_covers(self):
b1 = (0, 0, 10, 10)
b2 = (0, 0, 20, 10)
b3 = (0, 0, 5, 11)
self.assertFalse(bounding.covers(b1, b2))
self.assertTrue(bounding.covers(b2, b1))
self.assertFalse(bounding.covers(b1, b3))
self.assertFalse(bounding.covers(b3, b1))
self.assertTrue(bounding.covers(b3, b3))
def test_bbox_covers(self):
b1 = (0, 0, 10, 10)
b2 = (0, 0, 20, 10)
b3 = (0, 0, 5, 11)
self.assertFalse(bounding.covers(b1, b2))
self.assertTrue(bounding.covers(b2, b1))
self.assertFalse(bounding.covers(b1, b3))
self.assertFalse(bounding.covers(b3, b1))
self.assertTrue(bounding.covers(b3, b3))