def test_parse_billing_setup_path(): expected = { "customer": "scallop", "billing_setup": "abalone", } path = AccountBudgetServiceClient.billing_setup_path(**expected) # Check that the path construction is reversible. actual = AccountBudgetServiceClient.parse_billing_setup_path(path) assert expected == actual
def test_billing_setup_path(): customer = "winkle" billing_setup = "nautilus" expected = "customers/{customer}/billingSetups/{billing_setup}".format( customer=customer, billing_setup=billing_setup, ) actual = AccountBudgetServiceClient.billing_setup_path( customer, billing_setup) assert expected == actual