def test_shared_set_path(): customer = "oyster" shared_set = "nudibranch" expected = "customers/{customer}/sharedSets/{shared_set}".format( customer=customer, shared_set=shared_set, ) actual = SharedCriterionServiceClient.shared_set_path(customer, shared_set) assert expected == actual
def test_parse_shared_set_path(): expected = { "customer": "cuttlefish", "shared_set": "mussel", } path = SharedCriterionServiceClient.shared_set_path(**expected) # Check that the path construction is reversible. actual = SharedCriterionServiceClient.parse_shared_set_path(path) assert expected == actual