'Test jsonify with basic types.'

@pytest.mark.parametrize('test_value', [0, (-1), 1, 23, 3.14, 's', 'longer    string', True, False, None])
def test_jsonify_basic_types(self, test_value, app, client):

    url = '/jsonify_basic_types'
    app.add_url_rule(url, url, (lambda x=test_value: flask.jsonify(x)))
    rv = client.get(url)
    assert (rv.mimetype == 'application/json')
    assert (flask.json.loads(rv.data) == test_value)
