MCPcopy
hub / github.com/django/django / test_no_indentation

Method test_no_indentation

tests/serializers/test_jsonl.py:59–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 ]
58
59 def test_no_indentation(self):
60 s = serializers.jsonl.Serializer()
61 json_data = s.serialize([Score(score=5.0), Score(score=6.0)], indent=2)
62 for line in json_data.splitlines():
63 self.assertIsNone(re.search(r".+,\s*$", line))
64
65 @isolate_apps("serializers")
66 def test_custom_encoder(self):

Callers

nothing calls this directly

Calls 3

serializeMethod · 0.95
ScoreClass · 0.85
searchMethod · 0.80

Tested by

no test coverage detected