From d8f45d57b927130a66766c74d7c22dc55d44a491 Mon Sep 17 00:00:00 2001 From: Changaco Date: Sat, 13 Dec 2014 17:58:02 +0100 Subject: [PATCH] failing test for #364 --- tests/py/test_billing_exchanges.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/py/test_billing_exchanges.py b/tests/py/test_billing_exchanges.py index e7579e6a33..b2f35618cb 100644 --- a/tests/py/test_billing_exchanges.py +++ b/tests/py/test_billing_exchanges.py @@ -82,6 +82,12 @@ def test_create_card_hold_failure(self, Customer): hold, error = create_card_hold(self.db, self.janet, D('1.00')) assert hold is None assert error == "Foobar()" + exchange = self.db.one("SELECT * FROM exchanges") + assert exchange + assert exchange.amount + assert exchange.status == 'failed' + janet = Participant.from_id(self.janet.id) + assert self.janet.balance == janet.balance == 0 def test_create_card_hold_success(self): hold, error = create_card_hold(self.db, self.janet, D('1.00'))