def test_parse_billing_setup_path(): expected = { "customer_id": "scallop", "billing_setup_id": "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_id = "winkle" billing_setup_id = "nautilus" expected = "customers/{customer_id}/billingSetups/{billing_setup_id}".format(customer_id=customer_id, billing_setup_id=billing_setup_id, ) actual = AccountBudgetProposalServiceClient.billing_setup_path(customer_id, billing_setup_id) assert expected == actual