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

Commit

Permalink
Fix test regression (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Nov 29, 2012
1 parent 4682b05 commit e1307b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def test_balanced_bank_account(b_b_account, b_account):
# b_b_account = balanced.BankAccount
# b_b_b_account = billing.BalancedBankAccount
# got it?
bank_account = mock.Mock()
bank_account.is_valid = True
b_account.find.return_value.bank_accounts.all.return_value = [bank_account]

b_b_b_account = billing.BalancedBankAccount(balanced_account_uri)
assert b_account.find.called_with(balanced_account_uri)
assert b_b_account.find.called_with(balanced_bank_account_uri)
Expand Down

0 comments on commit e1307b2

Please sign in to comment.