  
      def test_urls_limited_by_lookup_value_regex(self):
          expected = ['^notes/$', '^notes/(?P<uuid>[0-9a-f]{32})/$']
          for idx in range(len(expected)):
              assert expected[idx] == get_regex_pattern(self.urls[idx])
  
  
  @override_settings(ROOT_URLCONF='tests.test_routers')
  class TestLookupUrlKwargs(URLPatternsTestCase, TestCase):
      """
 
</s> remove             assert expected[idx] == get_regex_pattern(self.urls[idx])
 </s> add             assert expected[idx] == self.urls[idx].pattern.regex.pattern </s> remove             assert expected[idx] == get_regex_pattern(self.urls[idx])
 </s> add             assert expected[idx] == self.urls[idx].pattern.regex.pattern </s> remove     @pytest.mark.skipif(django.VERSION[:2] < (2, 2), reason="requires django 2.2 or higher")
 </s> add  </s> remove         detail_url_pattern = get_regex_pattern(detail_route)
        assert '^notes/(?P<text>' in detail_url_pattern
 </s> add         assert '^notes/(?P<text>' in detail_route.pattern.regex.pattern </s> remove         detail_url_pattern = get_regex_pattern(detail_route)
        assert '<uuid>' in detail_url_pattern
 </s> add         assert '<uuid>' in detail_route.pattern.regex.pattern
            assert expected[idx] == self.urls[idx].pattern.regex.pattern
  
      def test_urls_limited_by_lookup_value_regex(self):
          expected = ['^notes/$', '^notes/(?P<uuid>[0-9a-f]{32})/$']
          for idx in range(len(expected)):
            assert expected[idx] == self.urls[idx].pattern.regex.pattern
  
  
  @override_settings(ROOT_URLCONF='tests.test_routers')
  class TestLookupUrlKwargs(URLPatternsTestCase, TestCase):
      """
keep keep keep keep replace keep keep keep keep keep
 Drop all compat support to Django < 2 urls (#7337) 
tests/test_routers.py