From: bert hubert Date: Fri, 9 Jan 2015 20:07:52 +0000 (+0100) Subject: adjust regression test to new http error in case of bad auth (401 is confusing if... X-Git-Tag: rec-3.7.0-rc1~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a225bfd82b31f9b5ab3895ac7c3c9ed646aa2e6c;p=pdns adjust regression test to new http error in case of bad auth (401 is confusing if not doing basic auth) --- 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)