コード例 #1
0
def test_parse_ad_group_ad_path():
    expected = {
        "customer": "cuttlefish",
        "ad_group_ad": "mussel",
    }
    path = ChangeStatusServiceClient.ad_group_ad_path(**expected)

    # Check that the path construction is reversible.
    actual = ChangeStatusServiceClient.parse_ad_group_ad_path(path)
    assert expected == actual
コード例 #2
0
def test_ad_group_ad_path():
    customer = "oyster"
    ad_group_ad = "nudibranch"
    expected = "customers/{customer}/adGroupAds/{ad_group_ad}".format(customer=customer, ad_group_ad=ad_group_ad, )
    actual = ChangeStatusServiceClient.ad_group_ad_path(customer, ad_group_ad)
    assert expected == actual