#NEWLINE# def test_json_response( self ) : #NEWLINE# #INDENT# expected = json . loads ( self . qs [ 0 ] . geom . geojson ) #NEWLINE# response = self . view ( factory . get ( '/' ) , pk = self . pk ) . render ( ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# feature = json . loads ( self . content ) #NEWLINE# self . assertEqual ( feature [ 'geometry' ] , expected ) #NEWLINE# self . assertEqual ( feature [ 'type' ] , 'Feature' )