          """This is the specific method that should handle the exclusion"""
          inspector = EndpointEnumerator(self.patterns)
  
          # Not pretty. Mimics internals of EndpointEnumerator to put should_include_endpoint under test
          pairs = [(inspector.get_path_from_regex(pattern.regex.pattern), pattern.callback)
                   for pattern in self.patterns]
  
          should_include = [
              inspector.should_include_endpoint(*pair) for pair in pairs
          ]
 
</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)): </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         detail_url_pattern = detail_route.regex.pattern
 </s> add         detail_url_pattern = get_regex_pattern(detail_route)
        pairs = [(inspector.get_path_from_regex(get_regex_pattern(pattern)), pattern.callback)
          """This is the specific method that should handle the exclusion"""
          inspector = EndpointEnumerator(self.patterns)
  
          # Not pretty. Mimics internals of EndpointEnumerator to put should_include_endpoint under test
        pairs = [(inspector.get_path_from_regex(get_regex_pattern(pattern)), pattern.callback)
                   for pattern in self.patterns]
  
          should_include = [
              inspector.should_include_endpoint(*pair) for pair in pairs
          ]
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_schemas.py