def get_token(login, password):
    resp = requests.post((THEIA_URL + '/services/authenticate/'), data={'ident': login, 'pass': password})
    assert resp, 'Unable to join Theia Server, check your connection'
    token = resp.text
    assert re.match('[a-zA-Z0-9]+', token), 'Invalid authentification, check you login/pass'
    return token
def get_token(login, password):
    resp = requests.post((THEIA_URL + '/services/authenticate/'), data={'ident': login, 'pass': password})
    assert resp, 'Unable to join Theia Server, check your connection'
    token = resp.text
    assert re.match('[a-zA-Z0-9]+', token), 'Invalid authentification, check you login/pass'
    return token