Real testing of saving accounts...

This commit is contained in:
Florent 2014-09-04 23:52:38 +02:00
commit ab8067bc92

View file

@ -35,7 +35,7 @@ class INGTest(BackendTest):
self.assertTrue(_id.id == account.id)
# Methods can use Account objects or id. Try one of them
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))
self.assertTrue(len(history) > 0)
date = history.pop(0).date