          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 = detail_route.regex.pattern
          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 = detail_route.regex.pattern
 </s> add         detail_url_pattern = get_regex_pattern(detail_route) </s> remove             assert expected[idx] == self.urls[idx].regex.pattern
 </s> add             assert expected[idx] == get_regex_pattern(self.urls[idx]) </s> remove             assert expected[idx] == self.urls[idx].regex.pattern
 </s> add             assert expected[idx] == get_regex_pattern(self.urls[idx]) </s> remove             assert expected[idx] == self.urls[idx].regex.pattern
 </s> add             assert expected[idx] == get_regex_pattern(self.urls[idx]) </s> remove         pairs = [(inspector.get_path_from_regex(pattern.regex.pattern), pattern.callback)
 </s> add         pairs = [(inspector.get_path_from_regex(get_regex_pattern(pattern)), pattern.callback)
        detail_url_pattern = get_regex_pattern(detail_route)
          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"}
keep keep keep keep replace keep keep keep keep keep
 Django 2.0a1 compat (#5503)

* Update remaing `include` calls

Missed as part of #5481 cleanup.

* Provide app_name in include_docs_urls

* Update remaining get_regex_pattern usages

* Allow functools.partial in is_simple_callable check 
tests/test_routers.py