|
@ -10,6 +10,8 @@ import tempfile |
|
|
from openerp.tests.common import TransactionCase |
|
|
from openerp.tests.common import TransactionCase |
|
|
from openerp.tools.misc import file_open |
|
|
from openerp.tools.misc import file_open |
|
|
|
|
|
|
|
|
|
|
|
from ..camt import CamtParser |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DATA_DIR = 'account_bank_statement_import_camt/test_files/' |
|
|
DATA_DIR = 'account_bank_statement_import_camt/test_files/' |
|
|
|
|
|
|
|
@ -18,7 +20,7 @@ class TestParser(TransactionCase): |
|
|
"""Tests for the camt parser itself.""" |
|
|
"""Tests for the camt parser itself.""" |
|
|
def setUp(self): |
|
|
def setUp(self): |
|
|
super(TestParser, self).setUp() |
|
|
super(TestParser, self).setUp() |
|
|
self.parser = self.env['account.bank.statement.import.camt.parser'] |
|
|
|
|
|
|
|
|
self.parser = CamtParser() |
|
|
|
|
|
|
|
|
def _do_parse_test(self, inputfile, goldenfile): |
|
|
def _do_parse_test(self, inputfile, goldenfile): |
|
|
with file_open(inputfile) as testfile: |
|
|
with file_open(inputfile) as testfile: |
|
|