      middleware = 'django.contrib.auth.middleware.RemoteUserMiddleware'
      backend = 'django.contrib.auth.backends.RemoteUserBackend'
  
      # Usernames to be passed in REMOTE_USER for the test_known_user test case.
      known_user = 'knownuser'
      known_user2 = 'knownuser2'
 
</s> remove         response = self.client.get('/remote_user/', REMOTE_USER=self.known_user)
 </s> add         response = self.client.get('/remote_user/',
                                   **{self.header: self.known_user}) </s> remove         response = self.client.get('/remote_user/', REMOTE_USER=self.known_user)
 </s> add         response = self.client.get('/remote_user/',
                                   **{self.header: self.known_user}) </s> remove         response = self.client.get('/remote_user/', REMOTE_USER='newuser')
 </s> add         response = self.client.get('/remote_user/', **{self.header: 'newuser'}) </s> remove         response = self.client.get('/remote_user/', REMOTE_USER=self.known_user2)
 </s> add         response = self.client.get('/remote_user/',
                                   **{self.header: self.known_user2}) </s> remove         response = self.client.get('/remote_user/', REMOTE_USER=self.known_user)
 </s> add         response = self.client.get('/remote_user/',
                                   **{self.header: self.known_user})
    header = 'REMOTE_USER'
      middleware = 'django.contrib.auth.middleware.RemoteUserMiddleware'
      backend = 'django.contrib.auth.backends.RemoteUserBackend'
    header = 'REMOTE_USER'
  
      # Usernames to be passed in REMOTE_USER for the test_known_user test case.
      known_user = 'knownuser'
      known_user2 = 'knownuser2'
keep add keep keep keep keep
 Fixed #21250 -- Made HTTP auth user header configurable in tests

Currently, if the authentication mechanism uses a custom HTTP header
and not REMOTE_USER, it is not easy to test. This commit modifies
remote user tests in order to make them more generic. 
django/contrib/auth/tests/test_remote_user.py