def test_get_subscription_policy(test_subscription, capsys): test_subscription.create() iam.get_subscription_policy(test_subscription.topic.name, test_subscription.name) out, _ = capsys.readouterr() assert test_subscription.topic.name in out assert test_subscription.name in out
def test_get_subscription_policy(test_subscription, capsys): test_subscription.create() iam.get_subscription_policy( test_subscription.topic.name, test_subscription.name) out, _ = capsys.readouterr() assert test_subscription.topic.name in out assert test_subscription.name in out
def test_get_subscription_policy(subscription, capsys): iam.get_subscription_policy(PROJECT, SUBSCRIPTION) out, _ = capsys.readouterr() assert subscription in out
def test_get_subscription_policy(subscription_path: str, capsys: CaptureFixture) -> None: iam.get_subscription_policy(PROJECT_ID, SUBSCRIPTION_ID) out, _ = capsys.readouterr() assert subscription_path in out
def test_get_subscription_policy(subscription_path, capsys): iam.get_subscription_policy(PROJECT_ID, SUBSCRIPTION_ID) out, _ = capsys.readouterr() assert subscription_path in out