Real testing of saving accounts...
This commit is contained in:
parent
02349089b1
commit
ab8067bc92
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class INGTest(BackendTest):
|
||||||
self.assertTrue(_id.id == account.id)
|
self.assertTrue(_id.id == account.id)
|
||||||
# Methods can use Account objects or id. Try one of them
|
# Methods can use Account objects or id. Try one of them
|
||||||
id_or_account = random.choice([account, account.id])
|
id_or_account = random.choice([account, account.id])
|
||||||
if account.type == Account.TYPE_CHECKING or account.type == Account.TYPE_CHECKING:
|
if account.type == Account.TYPE_CHECKING or account.type == Account.TYPE_SAVINGS:
|
||||||
history = list(self.backend.iter_history(id_or_account))
|
history = list(self.backend.iter_history(id_or_account))
|
||||||
self.assertTrue(len(history) > 0)
|
self.assertTrue(len(history) > 0)
|
||||||
date = history.pop(0).date
|
date = history.pop(0).date
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue