示例#1
0
def test_ad_group_path():
    customer = "oyster"
    ad_group = "nudibranch"
    expected = "customers/{customer}/adGroups/{ad_group}".format(
        customer=customer,
        ad_group=ad_group,
    )
    actual = AdGroupAdServiceClient.ad_group_path(customer, ad_group)
    assert expected == actual
示例#2
0
def test_parse_ad_group_path():
    expected = {
        "customer": "cuttlefish",
        "ad_group": "mussel",
    }
    path = AdGroupAdServiceClient.ad_group_path(**expected)

    # Check that the path construction is reversible.
    actual = AdGroupAdServiceClient.parse_ad_group_path(path)
    assert expected == actual