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
def test_make_session_auth(self): auth = ('user', 'pass') session = wc.make_session(auth) assert session.auth == auth