def test_parse_customer_client_path(): expected = { "customer": "oyster", "customer_client": "nudibranch", } path = CustomerClientServiceClient.customer_client_path(**expected) # Check that the path construction is reversible. actual = CustomerClientServiceClient.parse_customer_client_path(path) assert expected == actual
def test_customer_client_path(): customer = "whelk" customer_client = "octopus" expected = "customers/{customer}/customerClients/{customer_client}".format( customer=customer, customer_client=customer_client, ) actual = CustomerClientServiceClient.customer_client_path( customer, customer_client) assert expected == actual