Skip to content
Myr

Digest Authentication test.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 491a3c0 · Browse files · 1 file+19 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+19 added−1 removed

  • other:+19 added−1 removed

1 file+19 added−1 removed

modified:test_requests.py+19 added-1 removed
137 unmodified lines
138 r = requests.patch(httpbin('patch'))139 self.assertEqual(r.status_code, 200)140141142 def test_AUTH_HTTP_200_OK_GET(self):142 def test_BASICAUTH_HTTP_200_OK_GET(self):143144 for service in SERVICES:145146 auth = ('user', 'pass')
10 unmodified lines
157 r = s.get(url)158 self.assertEqual(r.status_code, 200)159160161 def test_DIGESTAUTH_HTTP_200_OK_GET(self):162163 for service in SERVICES:164165 auth = ('digest', 'user', 'pass')166 url = service('digest-auth', 'auth', 'user', 'pass')167168 r = requests.get(url, auth=auth)169 self.assertEqual(r.status_code, 200)170171 r = requests.get(url)172 self.assertEqual(r.status_code, 401)173174175 s = requests.session(auth=auth)176 r = s.get(url)177 self.assertEqual(r.status_code, 200)178179 def test_POSTBIN_GET_POST_FILES(self):180181 for service in SERVICES:182
351 unmodified lines