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
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