From 85d8a43b0429ef9934ae30dd6dec264dcfcda1d3 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Thu, 26 Sep 2013 19:55:00 +0200 Subject: [PATCH] [FIX] Additional substitution of out-refactored assertion check [FIX] Remove debug statement --- account_banking_tests/tests/test_payment_roundtrip.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/account_banking_tests/tests/test_payment_roundtrip.py b/account_banking_tests/tests/test_payment_roundtrip.py index 05c703a92..8962df1c4 100644 --- a/account_banking_tests/tests/test_payment_roundtrip.py +++ b/account_banking_tests/tests/test_payment_roundtrip.py @@ -101,7 +101,6 @@ class TestPaymentRoundtrip(SingleTransactionCase): cr, uid, [], 1)['value']) chart_setup_id = chart_setup_model.create( cr, uid, chart_values) - chart_setup_model.read(cr, uid, chart_setup_id) chart_setup_model.execute( cr, uid, [chart_setup_id]) year = datetime.now().strftime('%Y') @@ -300,9 +299,7 @@ class TestPaymentRoundtrip(SingleTransactionCase): cr, uid, [wizard_id], { 'manual_payment_order_id': self.payment_order_id}) statement_model.button_confirm_bank(cr, uid, [statement_id]) - state = reg('payment.order').read( - cr, uid, self.payment_order_id, ['state'])['state'] - assert state == 'done', 'Payment order does not go into state \'done\'.' + self.assert_payment_order_state('done') def check_reconciliations(self, reg, cr, uid): """