Changeset 5726 for main/waeup.sirp/trunk


Ignore:
Timestamp:
12 Feb 2011, 13:17:12 (14 years ago)
Author:
uli
Message:

Fix importer tests for JAMB data.

JAMB data is now stored in a root folder jambdata and not
applications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/jambtables/tests/test_batching.py

    r5689 r5726  
    3333        self.importer = ApplicantImporter()
    3434        self.site1 = dict(
    35             applications = {
     35            jambdata = {
    3636                'REG_NO_1': 'Application1',
    3737                }
     
    5959    def test_getParent(self):
    6060        parent = self.importer.getParent(None, self.site1)
    61         assert parent is self.site1['applications']
     61        assert parent is self.site1['jambdata']
    6262
    6363    def test_getEntry(self):
     
    7070        self.importer.addEntry(
    7171            'New application', dict(reg_no='REG_NO_99'), self.site1)
    72         assert self.site1['applications']['REG_NO_99'] == 'New application'
     72        assert self.site1['jambdata']['REG_NO_99'] == 'New application'
    7373
    7474    def test_delEntry(self):
    7575        self.importer.delEntry(dict(reg_no='REG_NO_1'), self.site1)
    76         assert 'REG_NO_1' not in self.site1['applications'].keys()
     76        assert 'REG_NO_1' not in self.site1['jambdata'].keys()
    7777       
    7878def test_suite():
Note: See TracChangeset for help on using the changeset viewer.