def test_make_session_no_auth(self):
     session = wc.make_session(None)
     assert session.auth is None
 def test_make_session_auth(self):
     auth = ('user', 'pass')
     headers = {'Authorization': 'Token lalala'}
     session = wc.make_session(auth, headers)
     assert session.auth == auth
     assert 'Authorization' in session.headers
Пример #3
0
 def test_make_session_auth(self):
     auth = ('user', 'pass')
     session = wc.make_session(auth)
     assert session.auth == auth