def test_parse_customer_label_path(): expected = { "customer": "oyster", "customer_label": "nudibranch", } path = CustomerLabelServiceClient.customer_label_path(**expected) # Check that the path construction is reversible. actual = CustomerLabelServiceClient.parse_customer_label_path(path) assert expected == actual
def test_customer_label_path(): customer = "whelk" customer_label = "octopus" expected = "customers/{customer}/customerLabels/{customer_label}".format(customer=customer, customer_label=customer_label, ) actual = CustomerLabelServiceClient.customer_label_path(customer, customer_label) assert expected == actual