Changeset 7958 for main/waeup.kofa/trunk


Ignore:
Timestamp:
22 Mar 2012, 14:49:20 (13 years ago)
Author:
Henrik Bettermann
Message:

Some minor test improvements.

File:
1 edited

Legend:

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

    r7953 r7958  
    348348            self.csv_file, STUDYCOURSE_HEADER_FIELDS,'update')
    349349        self.assertEqual(num_warns,1)
     350        content = open(fail_file).read()
     351        self.assertTrue('current_level: not in range' in content)
    350352        studycourse = self.processor.getEntry(dict(reg_number='1'), self.app)
    351353        self.assertEqual(studycourse.certificate.code, u'CERT1')
     
    388390        self.assertEqual(studycourse.current_verdict, 'A')
    389391        self.assertEqual(student.state, 'returning')
    390         pending_file = fail_file
     392        self.assertEqual(studycourse.current_level, 200)
    391393        content = open(fail_file).read()
    392394        self.assertEqual(
Note: See TracChangeset for help on using the changeset viewer.