From 0b29928dd394ce6ede8b76adb3e37d66c3469032 Mon Sep 17 00:00:00 2001 From: Jonathan Lacson Date: Sat, 5 Dec 2020 13:13:39 -0500 Subject: [PATCH] change the response code to one that makes more sense --- tests/server_unit_test_pserv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server_unit_test_pserv.py b/tests/server_unit_test_pserv.py index 5eab71d..ae8185f 100755 --- a/tests/server_unit_test_pserv.py +++ b/tests/server_unit_test_pserv.py @@ -1348,7 +1348,7 @@ class Access_Control(Doc_Print_Test_Case): raise AssertionError("The server did not respond within 2s") # Ensure that the user is not authenticated - self.assertEqual(response.status_code, requests.codes.forbidden, "Authentication failed.") + self.assertEqual(response.status_code, requests.codes.bad_request, "Authentication failed.") # Define the private URL to get url = 'http://%s:%s/%s' % (self.hostname, self.port, self.private_file)