def test_parse_payments_account_path(): expected = { "customer_id": "cuttlefish", "payments_account_id": "mussel", } path = BillingSetupServiceClient.payments_account_path(**expected) # Check that the path construction is reversible. actual = BillingSetupServiceClient.parse_payments_account_path(path) assert expected == actual
def test_payments_account_path(): customer_id = "oyster" payments_account_id = "nudibranch" expected = "customers/{customer_id}/paymentsAccounts/{payments_account_id}".format( customer_id=customer_id, payments_account_id=payments_account_id, ) actual = BillingSetupServiceClient.payments_account_path( customer_id, payments_account_id) assert expected == actual