'Test jsonify with dicts and kwargs unpacking.'

def test_jsonify_dicts(self, app, client):

    d = {'a': 0, 'b': 23, 'c': 3.14, 'd': 't', 'e': 'Hi', 'f': True, 'g': False, 'h': ['test    list', 10, False], 'i': {'test': 'dict'}}
    @app.route('/kw')
    def return_kwargs():
        return flask.jsonify(**d)
    @app.route('/dict')
    def return_dict():
        return flask.jsonify(d)
    for url in ('/kw', '/dict'):
        rv = client.get(url)
        assert (rv.mimetype == 'application/json')
        assert (flask.json.loads(rv.data) == d)
