MCPcopy
hub / github.com/celery/celery / test_text_maxlen

Method test_text_maxlen

t/unit/utils/test_saferepr.py:138–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 assert saferepr(D_TEXT) == old_repr(D_TEXT).replace("u'", "'")
137
138 def test_text_maxlen(self):
139 assert saferepr(D_D_TEXT, 100).endswith("...', ...}}")
140
141 def test_maxlevels(self):
142 saferepr(D_ALL, maxlevels=1)

Callers

nothing calls this directly

Calls 1

safereprFunction · 0.90

Tested by

no test coverage detected