(self)
| 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): |