Ignore:
Timestamp:
3 Jun 2012, 13:22:04 (13 years ago)
Author:
Henrik Bettermann
Message:

Be more precise in tests.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/sample_faulty_applicant_data.csv

    r8609 r8612  
    22,dp2011,1001,Aaren,Pieri,01/02/1990,xx@yy.zz,CERT1,m,Claus,
    335678,dp2011,1005,Jim,Knopf,1990-01-06,xx@yy.zz,CERT2,m,,
     46789,dp2011,1006,Lukas,Knopf,1990-01-07,xx@yy.zz,CERT3,m,,
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py

    r8610 r8612  
    197197        self.container = ApplicantsContainer()
    198198        self.container.code = u'dp2011'
     199        self.container.application_category = u'basic'
    199200        self.app['applicants']['dp2011'] = self.container
    200201
     
    331332                    'Wrong birthdate of imported applicant '
    332333                    '(1990-01-02, should be: 1990-02-01)')
    333         # CERT2 does not exist.
    334         self.assertEqual(num_warns,1)
     334        # CERT3 does not exist and CERT2 is in wrong category.
     335        self.assertEqual(num_warns,2)
    335336        fail_contents = open(fail_file, 'rb').read()
    336337        shutil.rmtree(os.path.dirname(fail_file))
Note: See TracChangeset for help on using the changeset viewer.