- Timestamp:
- 6 Oct 2015, 15:30:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_export.py
r12482 r13289 7 7 from kofacustom.sampleuni.utils.utils import CustomKofaUtils 8 8 from kofacustom.sampleuni.students.export import ( 9 CustomStudentExporter, CustomStudentPayment sExporter)9 CustomStudentExporter, CustomStudentPaymentExporter) 10 10 from kofacustom.sampleuni.testing import FunctionalLayer 11 11 … … 61 61 return 62 62 63 class CustomStudentPayment sExporterTest(StudentImportExportSetup):63 class CustomStudentPaymentExporterTest(StudentImportExportSetup): 64 64 65 65 layer = FunctionalLayer 66 66 67 67 def setUp(self): 68 super(CustomStudentPayment sExporterTest, self).setUp()68 super(CustomStudentPaymentExporterTest, self).setUp() 69 69 self.setup_for_export() 70 70 return … … 72 72 def test_ifaces(self): 73 73 # make sure we fullfill interface contracts 74 obj = CustomStudentPayment sExporter()74 obj = CustomStudentPaymentExporter() 75 75 verifyObject(ICSVExporter, obj) 76 verifyClass(ICSVExporter, CustomStudentPayment sExporter)76 verifyClass(ICSVExporter, CustomStudentPaymentExporter) 77 77 return 78 78 … … 83 83 self.student['payments']['my-payment'].r_company = 'interswatch' 84 84 self.student['payments']['my-payment'].r_card_num = '789' 85 exporter = CustomStudentPayment sExporter()85 exporter = CustomStudentPaymentExporter() 86 86 exporter.export_all(self.app, self.outfile) 87 87 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.