Beispiel #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')
Beispiel #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")