mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Check response status code in test_digest_auth_with_wrong_password()
This commit is contained in:
+2
-1
@@ -244,7 +244,8 @@ class HttpbinTestCase(unittest.TestCase):
|
||||
'Authorization': auth_header,
|
||||
}
|
||||
)
|
||||
assert 'Digest' in response.headers.get('WWW-Authenticate')
|
||||
self.assertTrue('Digest' in response.headers.get('WWW-Authenticate'))
|
||||
self.assertEqual(response.status_code, 401)
|
||||
|
||||
def test_digest_auth(self):
|
||||
# make first request
|
||||
|
||||
Reference in New Issue
Block a user