#NEWLINE# def test_search_rest_disambiguate( self ) : #NEWLINE# #INDENT# result = self . client . get ( '/search/test-2' ) #NEWLINE# self . assertEqual ( result . status_code , status . HTTP_302_FOUND ) #NEWLINE# self . assertEqual ( result [ 'Location' ] . replace ( 'http://testserver' , '' ) , '/identifiedmodels/test-2' )