From a225bfd82b31f9b5ab3895ac7c3c9ed646aa2e6c Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 9 Jan 2015 21:07:52 +0100 Subject: [PATCH] adjust regression test to new http error in case of bad auth (401 is confusing if not doing basic auth) --- regression-tests.api/test_Basics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regression-tests.api/test_Basics.py b/regression-tests.api/test_Basics.py index 56f5db591..1856e41e5 100644 --- a/regression-tests.api/test_Basics.py +++ b/regression-tests.api/test_Basics.py @@ -8,7 +8,7 @@ class TestBasics(ApiTestCase): def test_unauth(self): r = requests.get(self.url("/servers/localhost")) - self.assertEquals(r.status_code, requests.codes.unauthorized) + self.assertEquals(r.status_code, requests.codes.bad_request) def test_split_request(self): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -- 2.40.0