示例#1
0
def test_parse_ad_group_criterion_path():
    expected = {
        "customer": "whelk",
        "ad_group_criterion": "octopus",
    }
    path = ChangeStatusServiceClient.ad_group_criterion_path(**expected)

    # Check that the path construction is reversible.
    actual = ChangeStatusServiceClient.parse_ad_group_criterion_path(path)
    assert expected == actual
示例#2
0
def test_ad_group_criterion_path():
    customer = "squid"
    ad_group_criterion = "clam"
    expected = "customers/{customer}/adGroupCriteria/{ad_group_criterion}".format(customer=customer, ad_group_criterion=ad_group_criterion, )
    actual = ChangeStatusServiceClient.ad_group_criterion_path(customer, ad_group_criterion)
    assert expected == actual