change the response code to one that makes more sense

This commit is contained in:
Jonathan Lacson 2020-12-05 13:13:39 -05:00
parent b413f2953c
commit 0b29928dd3

View File

@ -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)