          )
  
  
  class ReverseLazySettingsTest(AdminScriptTestCase):
      """
      reverse_lazy can be used in settings without causing a circular
      import error.
      """
 
</s> remove from django.test import SimpleTestCase, TestCase, override_settings
 </s> add from django.test import (
    RequestFactory, SimpleTestCase, TestCase, override_settings,
)
    def test_build_absolute_uri(self):
        factory = RequestFactory()
        request = factory.get('/')
        self.assertEqual(
            request.build_absolute_uri(reverse_lazy('some-login-page')),
            'http://testserver/login/',
        )

          )
  
    def test_build_absolute_uri(self):
        factory = RequestFactory()
        request = factory.get('/')
        self.assertEqual(
            request.build_absolute_uri(reverse_lazy('some-login-page')),
            'http://testserver/login/',
        )

  
  class ReverseLazySettingsTest(AdminScriptTestCase):
      """
      reverse_lazy can be used in settings without causing a circular
      import error.
      """
keep add keep keep keep keep keep keep
 Fixed #31114 -- Fixed HttpRequest.build_absolute_uri() crash with reverse_lazy() locations. 
tests/urlpatterns_reverse/tests.py