Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
failing test for #364
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Dec 14, 2014
1 parent 3e2fed5 commit d8f45d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/py/test_billing_exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit d8f45d5

Please sign in to comment.