Test format method from JSONFormatter
(self)
| 48 | assert not json_fmt_no_asctime.usesTime() |
| 49 | |
| 50 | def test_format(self): |
| 51 | """ |
| 52 | Test format method from JSONFormatter |
| 53 | """ |
| 54 | log_record = makeLogRecord({"label": "value"}) |
| 55 | json_fmt = JSONFormatter(json_fields=["label"]) |
| 56 | assert json_fmt.format(log_record) == '{"label": "value"}' |
| 57 | |
| 58 | def test_format_with_extras(self): |
| 59 | """ |
nothing calls this directly
no test coverage detected