Changeset 7946
- Timestamp:
- 22 Mar 2012, 01:57:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r7945 r7946 75 75 ) 76 76 return 77 78 def test_export_all(self): 79 # we can really export students 80 # set values we can expect in export file 81 self.setup_student(self.student) 82 exporter = StudentsExporter() 83 exporter.export_all(self.app, self.outfile) 84 result = open(self.outfile, 'rb').read() 85 self.assertEqual( 86 result, 87 'adm_code,clearance_locked,clr_code,date_of_birth,email,' 88 'firstname,lastname,matric_number,middlename,nationality,' 89 'perm_address,phone,reg_number,sex,student_id\r\n' 90 91 'my adm code,0,my clr code,1981-02-04,anna@sample.com,Anna,' 92 'Tester,M123456,M.,nigeria,"Studentroad 21\nLagos 123456\n",' 93 '+234-123-12345,123456,f,A111111\r\n' 94 ) 95 return 96
Note: See TracChangeset for help on using the changeset viewer.