MCPcopy
hub / github.com/celery/celery / test_unicode_bytes__long

Method test_unicode_bytes__long

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

Source from the content-addressed store, hash-verified

185 assert saferepr(val) == "b'øystein'"
186
187 def test_unicode_bytes__long(self):
188 val = 'øystein'.encode() * 1024
189 assert saferepr(val, maxlen=128).endswith("...'")
190
191 def test_binary_bytes(self):
192 val = struct.pack('>QQQ', 12223, 1234, 3123)

Callers

nothing calls this directly

Calls 2

safereprFunction · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected