Quentin Defenouillere
Committed by Romain Bignon

[weboob.tests] Added "if" condition on transaction amounts

There are errors raised in the backend when a transaction has an amount
if "0.00". However these transactions actually exist, so we should
check whether the amount is None and not if the balance is != 0.
......@@ -117,7 +117,8 @@ class BankStandardTest(object):
today = date.today()
self.assertFalse(empty(tr.date), 'transaction %r has no debit date' % tr)
self.assertTrue(tr.amount, 'transaction %r has no amount' % tr)
if tr.amount != 0:
self.assertTrue(tr.amount, 'transaction %r has no amount' % tr)
self.assertFalse(empty(tr.raw) and empty(tr.label), 'transaction %r has no raw or label' % tr)
if coming:
......