MCPcopy
hub / github.com/celery/celery / test_single_quote

Method test_single_quote

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

Source from the content-addressed store, hash-verified

177 assert saferepr(value) == native
178
179 def test_single_quote(self):
180 val = {"foo's": "bar's"}
181 assert ast.literal_eval(saferepr(val)) == val
182
183 def test_unicode_bytes(self):
184 val = 'øystein'.encode()

Callers

nothing calls this directly

Calls 1

safereprFunction · 0.90

Tested by

no test coverage detected