diff --git a/tests/test_data_is_opening_balance_txn.py b/tests/test_data_is_opening_balance_txn.py index 8d229d01178f1dee0a16ce07c025dae7c344ce16..5dba3c8a23a41c24d59fedb843b1e51e33c2ff1d 100644 --- a/tests/test_data_is_opening_balance_txn.py +++ b/tests/test_data_is_opening_balance_txn.py @@ -23,7 +23,7 @@ from . import testutil from conservancy_beancount import data def test_typical_opening(): - txn = testutil.Transaction.opening_balance() + txn = testutil.OpeningBalance() assert data.is_opening_balance_txn(txn) def test_multiacct_opening(): @@ -36,7 +36,7 @@ def test_multiacct_opening(): assert data.is_opening_balance_txn(txn) def test_opening_with_fx(): - txn = testutil.Transaction.opening_balance() + txn = testutil.OpeningBalance() equity_post = txn.postings[-1] txn.postings[-1] = equity_post._replace( units=testutil.Amount(equity_post.units.number * Decimal('.9'), 'EUR'),