MCPcopy
hub / github.com/django/django / test_resolver_repr

Method test_resolver_repr

tests/urlpatterns_reverse/tests.py:618–626  ·  view source on GitHub ↗

Test repr of URLResolver, especially when urlconf_name is a list (#17892).

(self)

Source from the content-addressed store, hash-verified

616
617class ResolverTests(SimpleTestCase):
618 def test_resolver_repr(self):
619 """
620 Test repr of URLResolver, especially when urlconf_name is a list
621 (#17892).
622 """
623 # Pick a resolver from a namespaced URLconf
624 resolver = get_resolver("urlpatterns_reverse.namespace_urls")
625 sub_resolver = resolver.namespace_dict["test-ns1"][1]
626 self.assertIn("<URLPattern list>", repr(sub_resolver))
627
628 def test_reverse_lazy_object_coercion_by_resolve(self):
629 """

Callers

nothing calls this directly

Calls 1

get_resolverFunction · 0.90

Tested by

no test coverage detected