Changeset 12079 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/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/applicants/tests/test_export.py
r11869 r12079 11 11 from waeup.kofa.applicants import ApplicantsContainer 12 12 from waeup.kofa.applicants.export import ( 13 ApplicantsContainerExporter, Applicant sExporter)13 ApplicantsContainerExporter, ApplicantExporter) 14 14 from waeup.kofa.applicants.interfaces import ( 15 15 AppCatSource, ApplicationTypeSource) … … 81 81 return 82 82 83 class Applicant sExporterTest(ApplicantImportExportSetup):83 class ApplicantExporterTest(ApplicantImportExportSetup): 84 84 85 85 layer = FunctionalLayer 86 86 87 87 def setUp(self): 88 super(Applicant sExporterTest, self).setUp()88 super(ApplicantExporterTest, self).setUp() 89 89 self.outfile = os.path.join(self.workdir, 'myoutput.csv') 90 90 self.cat = getUtility(ICatalog, name='applicants_catalog') … … 94 94 def test_ifaces(self): 95 95 # make sure we fullfill interface contracts 96 obj = Applicant sExporter()96 obj = ApplicantExporter() 97 97 verifyObject(ICSVExporter, obj) 98 verifyClass(ICSVExporter, Applicant sExporter)98 verifyClass(ICSVExporter, ApplicantExporter) 99 99 return 100 100 … … 132 132 # we can export nearly empty applicants 133 133 self.applicant.applicant_id = u'dp2011_654321' 134 exporter = Applicant sExporter()134 exporter = ApplicantExporter() 135 135 exporter.export([self.applicant], self.outfile) 136 136 result = open(self.outfile, 'rb').read() … … 156 156 # set values we can expect in export file 157 157 applicant = self.setup_applicant(self.applicant) 158 exporter = Applicant sExporter()158 exporter = ApplicantExporter() 159 159 exporter.export([applicant], self.outfile) 160 160 result = open(self.outfile, 'rb').read() … … 183 183 # set values we can expect in export file 184 184 self.applicant = self.setup_applicant(self.applicant) 185 exporter = Applicant sExporter()185 exporter = ApplicantExporter() 186 186 exporter.export_all(self.app, self.outfile) 187 187 result = open(self.outfile, 'rb').read() … … 204 204 def test_export_filtered(self): 205 205 self.applicant = self.setup_applicant(self.applicant) 206 exporter = Applicant sExporter()206 exporter = ApplicantExporter() 207 207 exporter.export_filtered( 208 208 self.app, self.outfile, container=self.container.code)
Note: See TracChangeset for help on using the changeset viewer.