def test_datetimeSerialization(self):
        dt = datetime(2012, 12, 31)
        f = BytesIO()
        EliotFilter("datetime(2012, 12, 31)", ["{}"], f).run()
        expected = json.dumps(dt.isoformat()) + b"\n"
        self.assertEqual(f.getvalue(), expected)
Any L{datetime} in results will be serialized using L{datetime.isoformat}.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_filter.py/EliotFilterTests.test_datetimeSerialization