aboutsummaryrefslogtreecommitdiff
path: root/budget/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'budget/tests.py')
-rw-r--r--budget/tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/budget/tests.py b/budget/tests.py
index 0caf186..452f71f 100644
--- a/budget/tests.py
+++ b/budget/tests.py
@@ -283,6 +283,15 @@ class BudgetTestCase(TestCase):
bill = models.Bill.query.one()
self.assertEqual(bill.amount, 25)
+ self.app.post("/raclette/add", data={
+ 'date': '2011-08-10',
+ 'what': u'fromage à raclette',
+ 'payer': members_ids[0],
+ 'payed_for': members_ids,
+ 'amount': '-25', # bill with a negative value is not possible
+ })
+ self.assertEqual(1, models.Bill.query.count())
+
# edit the bill
resp = self.app.post("/raclette/edit/%s" % bill.id, data={
'date': '2011-08-10',