'Testing `from_bbox` class method.'

def test_polygons_from_bbox(self):

    bbox = ((-180), (-90), 180, 90)
    p = Polygon.from_bbox(bbox)
    self.assertEqual(bbox, p.extent)
    x = 3.141592653589793
    bbox = (0, 0, 1, x)
    p = Polygon.from_bbox(bbox)
    y = p.extent[(-1)]
    self.assertEqual(format(x, u'.13f'), format(y, u'.13f'))
