Skip to content
Myr

assert sessions are using new auth

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 0dae522 · Browse files · 1 file+5 added−2 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−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:test_requests.py+5 added-2 removed
145 unmodified lines
146 auth = ('user', 'pass')147 url = service('basic-auth', 'user', 'pass')148149 r = requests.get(url, auth=auth)150 # print r.__dict__150 self.assertEqual(r.status_code, 200)151153152 r = requests.get(url)153 self.assertEqual(r.status_code, 401)154155156 s = requests.session(auth=auth)157 r = s.get(url)158 self.assertEqual(r.status_code, 200)159160161 def test_POSTBIN_GET_POST_FILES(self):
354 unmodified lines