def test_expression(self):
        f = BytesIO()
        efilter = EliotFilter("J", [b'"abcd"', b"[1, 2]"], f)
        efilter._evaluate = lambda expr: {"x": len(expr), "orig": expr}
        self.assertEqual(f.getvalue(), b"")
        efilter.run()
        self.assertEqual(f.getvalue(),
                         json.dumps({"x": 4, "orig": "abcd"}) + b"\n" +
                         json.dumps({"x": 2, "orig": [1, 2]}) +  b'\n')
Offsets index to end of Period frequency
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_filter.py/EliotFilterTests.test_expression--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/tseries/offsets.py/DateOffset._end_apply_index