Changeset 7867


Ignore:
Timestamp:
13 Mar 2012, 07:17:49 (13 years ago)
Author:
Henrik Bettermann
Message:

Add test to verify classes after import (see previous revision in w.custom).

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r7844 r7867  
    496496
    497497class IApplicantEdit(IApplicantProcessData):
    498     """An applicant.
     498    """An applicant interface for editing.
    499499
    500500    Here we can repeat the fields from base data and set the
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py

    r7811 r7867  
    243243            self.csv_file, APPLICANT_HEADER_FIELDS)
    244244        self.assertEqual(num_warns,0)
    245         assert len(self.app['applicants']['dp2011'].keys()) == 4
     245        keys = self.app['applicants']['dp2011'].keys()
     246        assert len(keys) == 4
     247        container = self.app['applicants']['dp2011']
     248        assert  container.__implemented__.__name__ == (
     249            'waeup.kofa.applicants.container.ApplicantsContainer')
     250        applicant = container[keys[0]]
     251        assert applicant.__implemented__.__name__ == (
     252            'waeup.kofa.applicants.applicant.Applicant')
    246253        shutil.rmtree(os.path.dirname(fin_file))
    247254
Note: See TracChangeset for help on using the changeset viewer.