Changeset 8610 for main


Ignore:
Timestamp:
3 Jun 2012, 09:07:07 (12 years ago)
Author:
Henrik Bettermann
Message:

Adding another certificate with code CERT2 but in another application category now leads to an assertion error, i.e. test_import_faulty fails because the second record is being imported although the application category is not correct.

File:
1 edited

Legend:

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

    r8609 r8610  
    209209        self.app['faculties']['fac1']['dep1'].certificates.addCertificate(
    210210            self.certificate)
     211        self.certificate2 = createObject('waeup.Certificate')
     212        self.certificate2.code = 'CERT2'
     213        self.certificate2.application_category = 'xyz'
     214        self.app['faculties']['fac1']['dep1'].certificates.addCertificate(
     215            self.certificate2)
    211216
    212217        # Add applicant with subobjects
     
    327332                    '(1990-01-02, should be: 1990-02-01)')
    328333        # CERT2 does not exist.
     334        self.assertEqual(num_warns,1)
    329335        fail_contents = open(fail_file, 'rb').read()
    330336        shutil.rmtree(os.path.dirname(fail_file))
Note: See TracChangeset for help on using the changeset viewer.