Ejemplo n.º 1
0
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')
Ejemplo n.º 2
0
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")