def test_can_set_auth(): c = CatmaidClient(BASE_URL) assert c._session.auth is None c.set_http_auth('username', 'password') assert c._session.auth == ('username', 'password')
def test_can_set_auth(): c = CatmaidClient(BASE_URL) assert c._session.auth is None c.set_http_auth("username", "password") assert c._session.auth == ("username", "password")