Index: /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py	(revision 7911)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py	(revision 7912)
@@ -164,10 +164,10 @@
         shutil.rmtree(os.path.dirname(fin_file))
 
-class ApplicantImporterTest(FunctionalTestCase):
+class ApplicantImportExportSetup(FunctionalTestCase):
 
     layer = FunctionalLayer
 
     def setUp(self):
-        super(ApplicantImporterTest, self).setUp()
+        super(ApplicantImportExportSetup, self).setUp()
         # Setup a sample site for each test
         app = University()
@@ -204,11 +204,26 @@
         applicant = Applicant()
         applicant.firstname = u'Anna'
-        applicant.firstname = u'Tester'
+        applicant.lastname = u'Tester'
         self.app['applicants']['dp2011'].addApplicant(applicant)
         self.application_number = applicant.application_number
         self.applicant = self.app['applicants']['dp2011'][
             self.application_number]
+        self.workdir = tempfile.mkdtemp()
+        return
+
+    def tearDown(self):
+        super(ApplicantImportExportSetup, self).tearDown()
+        shutil.rmtree(self.workdir)
+        shutil.rmtree(self.dc_root)
+        clearSite()
+        return
+
+class ApplicantImporterTest(ApplicantImportExportSetup):
+
+    layer = FunctionalLayer
+
+    def setUp(self):
+        super(ApplicantImporterTest, self).setUp()
         self.importer = ApplicantImporter()
-        self.workdir = tempfile.mkdtemp()
         self.csv_file = os.path.join(self.workdir, 'sample_applicant_data.csv')
         self.csv_file_faulty = os.path.join(self.workdir,
@@ -219,11 +234,4 @@
         open(self.csv_file_faulty, 'wb').write(FAULTY_APPLICANT_SAMPLE_DATA)
         open(self.csv_file_update, 'wb').write(APPLICANT_SAMPLE_DATA_UPDATE)
-
-    def tearDown(self):
-        super(ApplicantImporterTest, self).tearDown()
-        shutil.rmtree(self.workdir)
-        shutil.rmtree(self.dc_root)
-        clearSite()
-        return
 
     def test_interface(self):
