Changeset 9936 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 7 Feb 2013, 08:21:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9861 r9936 10 10 CourseTicketExporter, StudentPaymentsExporter, BedTicketsExporter, 11 11 StudentPaymentsOverviewExporter, StudentStudyLevelsOverviewExporter, 12 ComboCardDataExporter, 12 13 get_students,) 13 14 from waeup.kofa.students.accommodation import BedTicket … … 930 931 ) 931 932 return 933 934 class ComboCardExporterTest(StudentImportExportSetup): 935 936 layer = FunctionalLayer 937 938 def setUp(self): 939 super(ComboCardExporterTest, self).setUp() 940 self.setup_for_export() 941 return 942 943 def test_export_all(self): 944 self.setup_student(self.student) 945 exporter = ComboCardDataExporter() 946 exporter.export_all(self.app, self.outfile) 947 result = open(self.outfile, 'rb').read() 948 self.assertTrue( 949 'display_fullname,matric_number,certificate,faculty,department\r\n' 950 'Anna M. Tester,234,Unnamed Certificate,Faculty of Unnamed ' 951 'Faculty (NA),Department of Unnamed Department (NA)' 952 in result 953 ) 954 return
Note: See TracChangeset for help on using the changeset viewer.