- Timestamp:
- 7 Jan 2014, 07:32:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r10842 r10874 880 880 exporter.export([self.student], self.outfile) 881 881 result = open(self.outfile, 'rb').read() 882 self.assert Equal(882 self.assertTrue( 883 883 'student_id,matric_number,display_fullname,state,certcode,' 884 884 'faccode,depcode,is_postgrad,' … … 886 886 '%s\r\n' 887 887 'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,200,2012,ug_ft,' 888 ',,,,,,,,12.12,\r\n' % year_range_str, 889 result 888 % year_range_str in result 890 889 ) 891 890 return … … 906 905 exporter.export_all(self.app, self.outfile) 907 906 result = open(self.outfile, 'rb').read() 908 self.assert Equal(907 self.assertTrue( 909 908 'student_id,matric_number,display_fullname,state,' 910 909 'certcode,faccode,depcode,is_postgrad,' 911 910 'current_level,current_session,current_mode,' 912 911 '%s\r\nA111111,234,Anna M. Tester,created,CERT1,NA,NA,0,' 913 '200,2012,ug_ft,,,,,,13.13,,,12.12,\r\n' % year_range_str, 914 result 912 '200,2012,ug_ft' % year_range_str in result 915 913 ) 916 914 return
Note: See TracChangeset for help on using the changeset viewer.