def test_parse_customer_path(): expected = { "customer": "clam", } path = CustomerManagerLinkServiceClient.customer_path(**expected) # Check that the path construction is reversible. actual = CustomerManagerLinkServiceClient.parse_customer_path(path) assert expected == actual
def test_customer_path(): customer = "squid" expected = "customers/{customer}".format(customer=customer, ) actual = CustomerManagerLinkServiceClient.customer_path(customer) assert expected == actual