Exemplo n.º 1
0
def test_check_auth_token_should_pass():
    base = ApiBase(auth_token=1234, verify_token_expire=False)
    base._check_auth_token()
    assert True
Exemplo n.º 2
0
def test_check_auth_token_should_raise_no_credential():
    with pytest.raises(exc.NoCredential):
        base = ApiBase()
        base._check_auth_token()