#NEWLINE# def test_get_ip( self ) : #NEWLINE# #INDENT# ' Tests if can handle a long user agent\n        ' #NEWLINE# request_factory = RequestFactory ( ) #NEWLINE# request = request_factory . get ( ADMIN_LOGIN_URL ) #NEWLINE# request . user = AnonymousUser ( ) #NEWLINE# request . session = SessionStore ( ) #NEWLINE# self . assertEqual ( utils . get_ip ( request_factory ) , '127.0.0.1' )