def test_fetch_one_plan_success():
    client = AcmeClient()
    client.login(user, pwd)
    res = client.fetch_one_plan(1)
    assert 'id' in res['response'] and 'name' in res['response']
def test_fetch_one_plan_fails_no_auth():
    client = AcmeClient()
    with pytest.raises(ClientUnauthorizedException):
        client.fetch_one_plan(1)