#NEWLINE# def test_search_rest_disambiguate_fail( self ) : #NEWLINE# #INDENT# result = self . client . get ( '/search/Test' ) #NEWLINE# self . assertEqual ( model . status_code , status . HTTP_200_OK ) #NEWLINE# annotmodels = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( i , model ) in enumerate ( AnnotatedModel . objects . all ( ) ) : #NEWLINE# #INDENT# annotmodels [ ( 'pk%s' % ( i + 1 ) ) ] = model . pk #NEWLINE# #UNINDENT# self . assertHTMLEqual ( result . content . decode ( 'utf-8' ) , '\n            <ul>\n              <li><a href="/identifiedannotatedmodels/test-6">Test 6</a></li>\n              <li><a href="/identifiedmodels/test">Test</a></li>\n              <li><a href="/identifiedmodels/test-2">Test 2</a></li>\n              <li><a href="/annotatedmodels/{pk1}">Test 3</a></li>\n              <li><a href="/annotatedmodels/{pk2}">Test 4</a></li>\n              <li><a href="/annotatedmodels/{pk3}">Test 5</a></li>\n              <li><a href="/identifiedannotatedmodels/test-6">Test 6</a></li>\n            </ul>\n            ' . format ( ** annotmodels ) )