  
  from django.conf import settings
  from django.contrib.auth import authenticate
  from django.contrib.auth.backends import RemoteUserBackend
  from django.contrib.auth.models import User
  from django.contrib.auth.tests.utils import skipIfCustomUser
  from django.test import TestCase
  from django.utils import timezone
  
 
</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_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=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_user2)
 </s> add         response = self.client.get('/remote_user/',
                                   **{self.header: self.known_user2})
from django.contrib.auth.middleware import RemoteUserMiddleware
  
  from django.conf import settings
  from django.contrib.auth import authenticate
  from django.contrib.auth.backends import RemoteUserBackend
from django.contrib.auth.middleware import RemoteUserMiddleware
  from django.contrib.auth.models import User
  from django.contrib.auth.tests.utils import skipIfCustomUser
  from django.test import TestCase
  from django.utils import timezone
  
keep keep keep add keep 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