[FIX] Restructure and expand tests. Fix some bugs.

There is now a common class to test import of statements and their transactions.
Fixes:
- Field in regular expression for mt940 rabo parser was to short for bank-account.
- Wrong name used for reference attribute in mt940 rabo parser;
- Attribute transferred_amount should not have been renamed amount in BankTransaction.
This commit is contained in:
Ronald Portier (Therp BV)
2015-06-22 15:44:39 +02:00
parent d3c1c8d39f
commit 182ea2893a
9 changed files with 208 additions and 152 deletions

View File

@@ -44,14 +44,14 @@ class BankTransaction(dict):
self['name'] = name
@property
def amount(self):
def transferred_amount(self):
"""property getter"""
return self['amount']
@amount.setter
def amount(self, amount):
@transferred_amount.setter
def transferred_amount(self, transferred_amount):
"""property setter"""
self['amount'] = amount
self['amount'] = transferred_amount
@property
def eref(self):