From 922c96e3c1ca28572b631b63145f717774f5efd2 Mon Sep 17 00:00:00 2001 From: Channel Cat Date: Sat, 19 Nov 2016 18:26:03 -0800 Subject: [PATCH] Updated test terminology --- tests/test_request_data.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_request_data.py b/tests/test_request_data.py index 161a7836..fca67ba9 100644 --- a/tests/test_request_data.py +++ b/tests/test_request_data.py @@ -9,16 +9,16 @@ def test_storage(): @app.middleware('request') def store(request): - request['a'] = 'test' - request['b'] = 'zest' - del request['b'] + request['user'] = 'sanic' + request['sidekick'] = 'tails' + del request['sidekick'] @app.route('/') def handler(request): - return json({ 'a': request.get('a'), 'b': request.get('b') }) + return json({ 'user': request.get('user'), 'sidekick': request.get('sidekick') }) request, response = sanic_endpoint_test(app) response_json = loads(response.text) - assert response_json['a'] == 'test' - assert response_json.get('b') is None \ No newline at end of file + assert response_json['user'] == 'sanic' + assert response_json.get('sidekick') is None \ No newline at end of file