'Test jsonify of lists and args unpacking.'

def test_jsonify_arrays(self, app, client):

    l = [0, 42, 3.14, 't', 'hello', True, False, ['test    list', 2, False], {'test': 'dict'}]
    @app.route('/args_unpack')
    def return_args_unpack():
        return flask.jsonify(*l)
    @app.route('/array')
    def return_array():
        return flask.jsonify(l)
    for url in ('/args_unpack', '/array'):
        rv = client.get(url)
        assert (rv.mimetype == 'application/json')
        assert (flask.json.loads(rv.data) == l)
