def test_json_prep():

    from datetime import datetime

    assert isinstance(util.json_prep({
        'a': datetime.now()
    })['a'], str)
Expect to convert dates in objects to ISO strings.
dataset/ETHPy150Open heiskr/sagefy/server/test/test_modules_util.py/test_json_prep