Check response status code in test_digest_auth_with_wrong_password()

This commit is contained in:
Felix Palta
2016-12-03 23:34:00 +03:00
parent f198dab947
commit ada6bd1508
+2 -1
View File
@@ -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