          RouterTestModel.objects.create(uuid='123', text='foo bar')
  
      def test_custom_lookup_url_kwarg_route(self):
          detail_route = kwarged_notes_router.urls[-1]
          detail_url_pattern = get_regex_pattern(detail_route)
          assert '^notes/(?P<text>' in detail_url_pattern
  
      def test_retrieve_lookup_url_kwarg_detail_view(self):
          response = self.client.get('/example2/notes/fo/')
          assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}
  
 
</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 </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             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 
        assert '^notes/(?P<text>' in detail_route.pattern.regex.pattern
          RouterTestModel.objects.create(uuid='123', text='foo bar')
  
      def test_custom_lookup_url_kwarg_route(self):
          detail_route = kwarged_notes_router.urls[-1]
        assert '^notes/(?P<text>' in detail_route.pattern.regex.pattern
        assert '^notes/(?P<text>' in detail_route.pattern.regex.pattern
  
      def test_retrieve_lookup_url_kwarg_detail_view(self):
          response = self.client.get('/example2/notes/fo/')
          assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}
  
keep keep keep keep replace replace keep keep keep keep keep
 Drop all compat support to Django < 2 urls (#7337) 
tests/test_routers.py