]> granicus.if.org Git - pdns/commitdiff
adjust regression test to new http error in case of bad auth (401 is confusing if...
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 9 Jan 2015 20:07:52 +0000 (21:07 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 9 Jan 2015 20:07:52 +0000 (21:07 +0100)
regression-tests.api/test_Basics.py

index 56f5db591ae7833420859fb15a755cd96353a7c2..1856e41e564b9dc98f33eb085ce8132a5a7916a1 100644 (file)
@@ -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)