Changeset 12079 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 28 Nov 2014, 08:50:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r11756 r12079 10 10 from waeup.kofa.students.catalog import StudentsQuery 11 11 from waeup.kofa.students.export import ( 12 Student sExporter, StudentStudyCourseExporter, StudentStudyLevelExporter,12 StudentExporter, StudentStudyCourseExporter, StudentStudyLevelExporter, 13 13 CourseTicketExporter, StudentPaymentsExporter, BedTicketsExporter, 14 14 StudentPaymentsOverviewExporter, StudentStudyLevelsOverviewExporter, … … 101 101 102 102 103 class Student sExporterTest(StudentImportExportSetup):103 class StudentExporterTest(StudentImportExportSetup): 104 104 105 105 layer = FunctionalLayer … … 112 112 113 113 def setUp(self): 114 super(Student sExporterTest, self).setUp()114 super(StudentExporterTest, self).setUp() 115 115 self.setup_for_export() 116 116 return … … 118 118 def test_ifaces(self): 119 119 # make sure we fullfill interface contracts 120 obj = Student sExporter()120 obj = StudentExporter() 121 121 verifyObject(ICSVStudentExporter, obj) 122 verifyClass(ICSVStudentExporter, Student sExporter)122 verifyClass(ICSVStudentExporter, StudentExporter) 123 123 return 124 124 … … 133 133 # set values we can expect in export file 134 134 self.setup_student(self.student) 135 exporter = Student sExporter()135 exporter = StudentExporter() 136 136 exporter.export([self.student], self.outfile) 137 137 result = open(self.outfile, 'rb').read() … … 155 155 # set values we can expect in export file 156 156 self.setup_student(self.student) 157 exporter = Student sExporter()157 exporter = StudentExporter() 158 158 exporter.export_all(self.app, self.outfile) 159 159 result = open(self.outfile, 'rb').read() … … 175 175 # we can export a single student 176 176 self.setup_student(self.student) 177 exporter = Student sExporter()177 exporter = StudentExporter() 178 178 exporter.export_student(self.student, self.outfile) 179 179 result = open(self.outfile, 'rb').read() … … 197 197 self.app['students'].addStudent(self.student) 198 198 notify(grok.ObjectModifiedEvent(self.student)) 199 exporter = Student sExporter()199 exporter = StudentExporter() 200 200 201 201 exporter.export_filtered( … … 249 249 self.app['students'].addStudent(self.student) 250 250 notify(grok.ObjectModifiedEvent(self.student)) 251 exporter = Student sExporter()251 exporter = StudentExporter() 252 252 # current_session can be both a string ... 253 253 exporter.export_filtered( … … 269 269 self.app['students'].addStudent(self.student) 270 270 notify(grok.ObjectModifiedEvent(self.student)) 271 exporter = Student sExporter()271 exporter = StudentExporter() 272 272 273 273 exporter.export_filtered(
Note: See TracChangeset for help on using the changeset viewer.