(app, client, value)
| 134 | "value", [datetime.datetime(1973, 3, 11, 6, 30, 45), datetime.date(1975, 1, 5)] |
| 135 | ) |
| 136 | def test_jsonify_datetime(app, client, value): |
| 137 | @app.route("/") |
| 138 | def index(): |
| 139 | return flask.jsonify(value=value) |
| 140 | |
| 141 | r = client.get() |
| 142 | assert r.json["value"] == http_date(value) |
| 143 | |
| 144 | |
| 145 | class FixedOffset(datetime.tzinfo): |