def test_ad_group_audience_view_path():
    customer = "squid"
    ad_group_audience_view = "clam"
    expected = "customers/{customer}/adGroupAudienceViews/{ad_group_audience_view}".format(
        customer=customer,
        ad_group_audience_view=ad_group_audience_view,
    )
    actual = AdGroupAudienceViewServiceClient.ad_group_audience_view_path(
        customer, ad_group_audience_view)
    assert expected == actual
def test_parse_ad_group_audience_view_path():
    expected = {
        "customer": "whelk",
        "ad_group_audience_view": "octopus",
    }
    path = AdGroupAudienceViewServiceClient.ad_group_audience_view_path(
        **expected)

    # Check that the path construction is reversible.
    actual = AdGroupAudienceViewServiceClient.parse_ad_group_audience_view_path(
        path)
    assert expected == actual