Skip to content
Myr

Extend digests test case to connect twice using the same auth and confirm the second one went direct.

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

authored by Peter Montagner · committed by Peter Montagner · parent 5017aeb · Browse files · 1 file+5 added−0 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+5 added−0 removed

  • tests:+5 added−0 removed

1 file+5 added−0 removed

modified:tests/test_requests.py+5 added
275 unmodified lines
276 url = service('digest-auth', 'auth', 'user', 'pass')277278 r = get(url, auth=auth)279 self.assertEqual(r.status_code, 200)280 self.assertEqual(len(r.history), 1)281282 r = get(url, auth=auth)283 self.assertEqual(r.status_code, 200)284 self.assertEqual(len(r.history), 0)285286 r = get(url)287 self.assertEqual(r.status_code, 401)288289 s = requests.session(auth=auth)
787 unmodified lines