#NEWLINE# def test_get_response_for_url_valid( self ) : #NEWLINE# #INDENT# with HTTMock ( mock_prerender_response ) : #NEWLINE# #INDENT# resp = self . backend . get_response_for_url ( 'http://www.example.com' ) #NEWLINE# self . assertEqual ( MOCK_RESPONSE , resp . content ) #NEWLINE# for ( k , v ) in MOCK_RESPONSE_HEADERS . items ( ) : #NEWLINE# #INDENT# self . assertEqual ( resp [ k ] , v )