def test_parse_billing_setup_path(): expected = { "customer": "scallop", "billing_setup": "abalone", } path = AccountBudgetProposalServiceClient.billing_setup_path(**expected) # Check that the path construction is reversible. actual = AccountBudgetProposalServiceClient.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 = AccountBudgetProposalServiceClient.billing_setup_path(customer, billing_setup) assert expected == actual