Integration test with simplejson.
(self, event_dict)
| 357 | |
| 358 | @pytest.mark.skipif(simplejson is None, reason="simplejson is missing.") |
| 359 | def test_simplejson(self, event_dict): |
| 360 | """ |
| 361 | Integration test with simplejson. |
| 362 | """ |
| 363 | jr = JSONRenderer(serializer=simplejson.dumps) |
| 364 | |
| 365 | assert { |
| 366 | "a": "<A(\\o/)>", |
| 367 | "b": [3, 4], |
| 368 | "x": 7, |
| 369 | "y": "test", |
| 370 | "z": [1, 2], |
| 371 | } == json.loads(jr(None, None, event_dict)) |
| 372 | |
| 373 | |
| 374 | class TestTimeStamper: |
nothing calls this directly
no test coverage detected