def test_parse_billing_setup_path(): expected = { "customer": "whelk", "billing_setup": "octopus", } path = BillingSetupServiceClient.billing_setup_path(**expected) # Check that the path construction is reversible. actual = BillingSetupServiceClient.parse_billing_setup_path(path) assert expected == actual
def test_billing_setup_path(): customer = "squid" billing_setup = "clam" expected = "customers/{customer}/billingSetups/{billing_setup}".format(customer=customer, billing_setup=billing_setup, ) actual = BillingSetupServiceClient.billing_setup_path(customer, billing_setup) assert expected == actual