示例#1
0
def test_parse_ad_group_feed_path():
    expected = {
        "customer": "cuttlefish",
        "ad_group_feed": "mussel",
    }
    path = ChangeStatusServiceClient.ad_group_feed_path(**expected)

    # Check that the path construction is reversible.
    actual = ChangeStatusServiceClient.parse_ad_group_feed_path(path)
    assert expected == actual
示例#2
0
def test_ad_group_feed_path():
    customer = "oyster"
    ad_group_feed = "nudibranch"
    expected = "customers/{customer}/adGroupFeeds/{ad_group_feed}".format(customer=customer, ad_group_feed=ad_group_feed, )
    actual = ChangeStatusServiceClient.ad_group_feed_path(customer, ad_group_feed)
    assert expected == actual