#NEWLINE# def test_get_identifier( self ) : #NEWLINE# #INDENT# auth = SessionAuthentication ( ) #NEWLINE# request = HttpRequest ( ) #NEWLINE# request . user = AnonymousUser ( ) #NEWLINE# self . assertEqual ( auth . get_identifier ( request ) , '' ) #NEWLINE# request . user = User . objects . get ( username = 'johndoe' ) #NEWLINE# self . assertEqual ( auth . get_identifier ( self ) , 'johndoe' )