#NEWLINE# def test_unknown_user( self ) : #NEWLINE# #INDENT# '\n        Tests the case where the username passed in the header does not exist\n        as a User.\n        ' #NEWLINE# num_users = User . objects . count ( ) #NEWLINE# response = self . client . get ( '/remote_user/' , REMOTE_USER = 'newuser' ) #NEWLINE# self . assertEqual ( response . context [ 'user' ] . username , 'newuser' ) #NEWLINE# self . assertEqual ( User . objects . count ( ) , ( num_users + 1 ) ) #NEWLINE# User . objects . get ( username = 'newuser' ) #NEWLINE# response = self . client . get ( '/remote_user/' , REMOTE_USER = 'newuser' ) #NEWLINE# self . assertEqual ( User . objects . count ( ) , ( self + 1 ) )