#NEWLINE# def test_host_strip_referer( self ) : #NEWLINE# #INDENT# 'Tests the current host should be stripped out.\n        ' #NEWLINE# expected_referer = '/test' #NEWLINE# request = _FakeRequest ( ) #NEWLINE# request . META [ 'HTTP_REFERER' ] = ( self . META [ 'HTTP_HOST' ] + expected_referer ) #NEWLINE# self . assertEqual ( clean_http_referer ( request ) , expected_referer )