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

Test if error messages in pending data file are correct.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_studycourse_data.csv

    r7531 r7953  
    44,100002,CERT1,2008,200
    551,,CERT1,2008,100
     64,,CERT1,2008,200
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py

    r7952 r7953  
    388388        self.assertEqual(studycourse.current_verdict, 'A')
    389389        self.assertEqual(student.state, 'returning')
     390        pending_file = fail_file
     391        content = open(fail_file).read()
     392        self.assertEqual(
     393            content,
     394            'current_session,current_verdict,matric_number,current_level,--ERRORS--\r\n'
     395            '2008,B,100001,100,Current level does not correspond.\r\n'
     396            '2007,C,100002,200,Current session does not correspond.\r\n'
     397            '2008,A,100003,200,Student in wrong state.\r\n'
     398            )
    390399        shutil.rmtree(os.path.dirname(fin_file))
    391400
Note: See TracChangeset for help on using the changeset viewer.