- Timestamp:
- 23 Apr 2015, 19:39:04 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py
r12392 r12875 25 25 from kofacustom.nigeria.utils.utils import NigeriaKofaUtils 26 26 from kofacustom.nigeria.students.export import ( 27 NigeriaStudentExporter, NigeriaStudentPayment sExporter,27 NigeriaStudentExporter, NigeriaStudentPaymentExporter, 28 28 ClearanceRequestedStudentExporter) 29 29 from kofacustom.nigeria.testing import FunctionalLayer … … 92 92 return 93 93 94 class NigeriaStudentPayment sExporterTest(StudentImportExportSetup):94 class NigeriaStudentPaymentExporterTest(StudentImportExportSetup): 95 95 96 96 layer = FunctionalLayer 97 97 98 98 def setUp(self): 99 super(NigeriaStudentPayment sExporterTest, self).setUp()99 super(NigeriaStudentPaymentExporterTest, self).setUp() 100 100 self.setup_for_export() 101 101 return … … 103 103 def test_ifaces(self): 104 104 # make sure we fullfill interface contracts 105 obj = NigeriaStudentPayment sExporter()105 obj = NigeriaStudentPaymentExporter() 106 106 verifyObject(ICSVExporter, obj) 107 verifyClass(ICSVExporter, NigeriaStudentPayment sExporter)107 verifyClass(ICSVExporter, NigeriaStudentPaymentExporter) 108 108 return 109 109 … … 114 114 self.student['payments']['my-payment'].r_company = 'interswatch' 115 115 self.student['payments']['my-payment'].r_card_num = '789' 116 exporter = NigeriaStudentPayment sExporter()116 exporter = NigeriaStudentPaymentExporter() 117 117 exporter.export_all(self.app, self.outfile) 118 118 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.