#NEWLINE# def test_geojson( self ) : #NEWLINE# #INDENT# request = factory . get ( '/' , { #NEWLINE# #INDENT# 'format' : 'geojson' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIsInstance ( self . view ( request ) . accepted_renderer , GeoJSONRenderer ) #NEWLINE# request = factory . get ( '/' , HTTP_ACCEPT = GeoJSONRenderer . media_type ) #NEWLINE# response = self . view ( request ) . render ( ) #NEWLINE# self . assertIsInstance ( response . accepted_renderer , GeoJSONRenderer ) #NEWLINE# for ( geom , obj ) in zip ( self . _parse_collection ( response ) , self . qs ) : #NEWLINE# #INDENT# self . assertTrue ( geom . equals_exact ( obj . geom , 0.0001 ) )