コード例 #1
0
def test_fetch_all_plans_success():
    client = AcmeClient()
    client.login(user, pwd)
    res = client.fetch_all_plans()
    assert 'plans' in res['response']
コード例 #2
0
def test_fetch_all_plans_fails_no_auth():
    client = AcmeClient()
    with pytest.raises(ClientUnauthorizedException):
        client.fetch_all_plans()