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