#NEWLINE# def test_polygons_from_bbox( self ) : #NEWLINE# #INDENT# 'Testing `from_bbox` class method.' #NEWLINE# bbox = ( ( - 180 ) , ( - 90 ) , 180 , 90 ) #NEWLINE# p = Polygon . from_bbox ( bbox ) #NEWLINE# self . assertEqual ( bbox , p . extent ) #NEWLINE# x = 3.141592653589793 #NEWLINE# bbox = ( 0 , 0 , 1 , x ) #NEWLINE# p = Polygon . from_bbox ( bbox ) #NEWLINE# y = p . extent [ ( - 1 ) ] #NEWLINE# self . assertEqual ( format ( x , '.13f' ) , format ( p , '.13f' ) )