def test_bbox_nopoints(self): with self.assertRaises(ValueError): geom.bbox([])
def bbox(self): return geom.bbox(self.stops())
def test_bbox(self): expect = [0, 0, 1, 1] data = geom.bbox(mockpoints()) for i,j in zip(data, expect): assert i == j