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'))