diff --git a/tests/testutil.py b/tests/testutil.py index 3ef26049a04b909cbdb7e736013af10efd437f6b..e4ee7fc51314789f8ac9ae5527142131f78320f5 100644 --- a/tests/testutil.py +++ b/tests/testutil.py @@ -156,18 +156,6 @@ OPENING_EQUITY_ACCOUNTS = itertools.cycle([ 'Equity:OpeningBalance', ]) -def balance_map(source=None, **kwargs): - # The source and/or kwargs should map currency name strings to - # things you can pass to Decimal (a decimal string, an int, etc.) - # This returns a dict that maps currency name strings to Amount instances. - retval = {} - if source is not None: - retval.update((currency, Amount(number, currency)) - for currency, number in source) - if kwargs: - retval.update(balance_map(kwargs.items())) - return retval - def OpeningBalance(acct=None, **txn_meta): if acct is None: acct = next(OPENING_EQUITY_ACCOUNTS)