MCPcopy
hub / github.com/django/django / _text_repr

Method _text_repr

django/test/testcases.py:551–554  ·  view source on GitHub ↗
(self, content, force_string)

Source from the content-addressed store, hash-verified

549 )
550
551 def _text_repr(self, content, force_string):
552 if isinstance(content, bytes) and not force_string:
553 return safe_repr(content)
554 return "'%s'" % str(content)
555
556 def _assert_contains(self, response, text, status_code, msg_prefix, html):
557 # If the response supports deferred rendering and hasn't been rendered

Callers 2

assertContainsMethod · 0.95
assertNotContainsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected