示例#1
0
def test_parse_shared_set_path():
    expected = {
        "customer": "scallop",
        "shared_set": "abalone",
    }
    path = CampaignSharedSetServiceClient.shared_set_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignSharedSetServiceClient.parse_shared_set_path(path)
    assert expected == actual
示例#2
0
def test_shared_set_path():
    customer = "winkle"
    shared_set = "nautilus"
    expected = "customers/{customer}/sharedSets/{shared_set}".format(
        customer=customer,
        shared_set=shared_set,
    )
    actual = CampaignSharedSetServiceClient.shared_set_path(
        customer, shared_set)
    assert expected == actual