From 2e40fb86080a389aad2231fdd18304f1a70c6f9b Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 18 Jan 2018 16:04:31 +0800 Subject: [PATCH] Fix client/server version test. --- tests/handlers/api/controller/test_version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/handlers/api/controller/test_version.py b/tests/handlers/api/controller/test_version.py index a763ce00..fafda198 100644 --- a/tests/handlers/api/controller/test_version.py +++ b/tests/handlers/api/controller/test_version.py @@ -45,7 +45,8 @@ def test_version_invalid_input(http_controller): query = {'version': "0.4.2"} response = http_controller.post('/version', query) assert response.status == 409 - assert response.json == {'message': 'Client version 0.4.2 differs with server version {}'.format(__version__), + + assert response.json == {'message': 'Client version 0.4.2 is not the same as server version {}'.format(__version__), 'status': 409}