  
      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].regex.pattern
  
  
  @override_settings(ROOT_URLCONF='tests.test_routers')
  class TestLookupUrlKwargs(TestCase):
      """
 
</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         detail_url_pattern = detail_route.regex.pattern
 </s> add         detail_url_pattern = get_regex_pattern(detail_route) </s> remove         detail_url_pattern = detail_route.regex.pattern
 </s> add         detail_url_pattern = get_regex_pattern(detail_route) </s> remove         if not (inspect.isfunction(obj) or inspect.ismethod(obj)):
 </s> add         if not (inspect.isfunction(obj) or inspect.ismethod(obj) or isinstance(obj, functools.partial)):
            assert expected[idx] == get_regex_pattern(self.urls[idx])
  
      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(TestCase):
      """
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