Example #1
0
def test_parse_shared_set_path():
    expected = {
        "customer_id": "whelk",
        "shared_set_id": "octopus",
    }
    path = SharedSetServiceClient.shared_set_path(**expected)

    # Check that the path construction is reversible.
    actual = SharedSetServiceClient.parse_shared_set_path(path)
    assert expected == actual
Example #2
0
def test_shared_set_path():
    customer_id = "squid"
    shared_set_id = "clam"
    expected = "customers/{customer_id}/sharedSets/{shared_set_id}".format(customer_id=customer_id, shared_set_id=shared_set_id, )
    actual = SharedSetServiceClient.shared_set_path(customer_id, shared_set_id)
    assert expected == actual