Ignore:
Timestamp:
28 Jan 2012, 08:37:31 (13 years ago)
Author:
Henrik Bettermann
Message:

Add regression test. ConstraintNotSatisfied? exception is not catched by checkConversion. Why?

File:
1 edited

Legend:

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

    r7527 r7529  
    280280        num, num_warns, fin_file, fail_file = self.importer.doImport(
    281281            self.csv_file, STUDYCOURSE_HEADER_FIELDS,'update')
     282        self.assertEqual(num_warns,1)
    282283        studycourse = self.importer.getEntry(dict(reg_number='1'), self.app)
    283         self.assertEqual(num_warns,0)
    284284        self.assertEqual(studycourse.certificate.code, u'CERT1')
    285285        shutil.rmtree(os.path.dirname(fin_file))
Note: See TracChangeset for help on using the changeset viewer.