Exemple #1
0
def test_shared_set_path():
    customer = "squid"
    shared_set = "clam"
    expected = "customers/{customer}/sharedSets/{shared_set}".format(
        customer=customer,
        shared_set=shared_set,
    )
    actual = SharedSetServiceClient.shared_set_path(customer, shared_set)
    assert expected == actual
Exemple #2
0
def test_parse_shared_set_path():
    expected = {
        "customer": "whelk",
        "shared_set": "octopus",
    }
    path = SharedSetServiceClient.shared_set_path(**expected)

    # Check that the path construction is reversible.
    actual = SharedSetServiceClient.parse_shared_set_path(path)
    assert expected == actual