#NEWLINE# def test_park( self ) : #NEWLINE# #INDENT# request = self . factory . get ( ( self . url + '?query=park' ) ) #NEWLINE# force_authenticate ( request , user = self . project . creator ) #NEWLINE# view = LocationsAPIView . as_view ( ) #NEWLINE# response = view ( request , project_id = self . project . id ) . render ( ) #NEWLINE# response_json = json . loads ( view . content ) #NEWLINE# self . assertEqual ( len ( response_json . get ( 'features' ) ) , 3 ) #NEWLINE# self . assertNotIn ( '"description": "hyde"' , response . content )