From 0f17b83a89b33f10bfc7f25fef4bd7b14da7de24 Mon Sep 17 00:00:00 2001 From: Yogi Valani Date: Fri, 19 Oct 2018 17:01:09 +0100 Subject: [PATCH] Output expected and actual correctly Calling self.assertStatus(response, 401) Outputs the following: Expected :200 Actual :401 Should be the other way, I was expecting 401. --- flask_testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_testing/utils.py b/flask_testing/utils.py index 7362c40..0beadf4 100644 --- a/flask_testing/utils.py +++ b/flask_testing/utils.py @@ -321,7 +321,7 @@ def assertStatus(self, response, status_code, message=None): message = message or 'HTTP Status %s expected but got %s' \ % (status_code, response.status_code) - self.assertEqual(response.status_code, status_code, message) + self.assertEqual(status_code, response.status_code, message) assert_status = assertStatus