def test_fetch_all_plans_success(): client = AcmeClient() client.login(user, pwd) res = client.fetch_all_plans() assert 'plans' in res['response']
def test_fetch_all_plans_fails_no_auth(): client = AcmeClient() with pytest.raises(ClientUnauthorizedException): client.fetch_all_plans()