aboutsummaryrefslogtreecommitdiff
path: root/budget/tests.py
diff options
context:
space:
mode:
authorA.Avenel <avenel.alexandre@gmail.com>2013-04-07 22:14:32 +0200
committerA.Avenel <avenel.alexandre@gmail.com>2013-04-07 22:14:32 +0200
commit0d7c82b12267ed3a9ece1ca72a71cea077e9cc0f (patch)
tree664900152d10dc061e4ed723c9fc9d7781741111 /budget/tests.py
parent1fa0cff180d668a8d93d24413fe7832cdbd3e826 (diff)
downloadihatemoney-mirror-0d7c82b12267ed3a9ece1ca72a71cea077e9cc0f.zip
ihatemoney-mirror-0d7c82b12267ed3a9ece1ca72a71cea077e9cc0f.tar.gz
ihatemoney-mirror-0d7c82b12267ed3a9ece1ca72a71cea077e9cc0f.tar.bz2
More code cleanup for "settle bills"
Diffstat (limited to 'budget/tests.py')
-rw-r--r--budget/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/budget/tests.py b/budget/tests.py
index 983b352..901924b 100644
--- a/budget/tests.py
+++ b/budget/tests.py
@@ -510,12 +510,12 @@ class BudgetTestCase(TestCase):
'amount': '10',
})
project = models.Project.query.get('raclette')
- transactions = project.settle_bills()
+ transactions = project.get_transactions_to_settle_bill()
members = defaultdict(int)
#We should have the same values between transactions and project balances
for t in transactions:
members[t['ower']]-=t['amount']
- members[t['payer']]+=t['amount']
+ members[t['receiver']]+=t['amount']
balance = models.Project.query.get("raclette").balance
for m, a in members.items():
self.assertEqual(a, balance[m.id])