- Timestamp:
- 23 Apr 2015, 21:13:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py
r12856 r12879 7 7 from waeup.uniben.utils.utils import CustomKofaUtils 8 8 from waeup.uniben.students.export import ( 9 CustomStudentExporter, CustomStudentPayment sExporter)9 CustomStudentExporter, CustomStudentPaymentExporter) 10 10 from waeup.uniben.testing import FunctionalLayer 11 11 … … 73 73 return 74 74 75 class CustomStudentPayment sExporterTest(StudentImportExportSetup):75 class CustomStudentPaymentExporterTest(StudentImportExportSetup): 76 76 77 77 layer = FunctionalLayer 78 78 79 79 def setUp(self): 80 super(CustomStudentPayment sExporterTest, self).setUp()80 super(CustomStudentPaymentExporterTest, self).setUp() 81 81 self.setup_for_export() 82 82 return … … 84 84 def test_ifaces(self): 85 85 # make sure we fullfill interface contracts 86 obj = CustomStudentPayment sExporter()86 obj = CustomStudentPaymentExporter() 87 87 verifyObject(ICSVExporter, obj) 88 verifyClass(ICSVExporter, CustomStudentPayment sExporter)88 verifyClass(ICSVExporter, CustomStudentPaymentExporter) 89 89 return 90 90 … … 95 95 self.student['payments']['my-payment'].r_company = 'interswatch' 96 96 self.student['payments']['my-payment'].r_card_num = '789' 97 exporter = CustomStudentPayment sExporter()97 exporter = CustomStudentPaymentExporter() 98 98 exporter.export_all(self.app, self.outfile) 99 99 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.