Index: main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py
===================================================================
--- main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py	(revision 16386)
+++ main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py	(revision 16390)
@@ -8,5 +8,6 @@
 from waeup.uniben.utils.utils import CustomKofaUtils
 from waeup.uniben.students.export import (
-    CustomStudentExporter, CustomStudentPaymentExporter)
+    CustomStudentExporter, CustomStudentPaymentExporter,
+    MedicalHistoryExporter)
 from waeup.uniben.testing import FunctionalLayer
 
@@ -114,2 +115,39 @@
             )
         return
+
+class MedicalHistoryExporterTest(StudentImportExportSetup):
+
+    layer = FunctionalLayer
+
+    def setUp(self):
+        super(MedicalHistoryExporterTest, self).setUp()
+        self.setup_for_export()
+        return
+
+    def test_ifaces(self):
+        # make sure we fullfill interface contracts
+        obj = MedicalHistoryExporter()
+        verifyObject(ICSVExporter, obj)
+        verifyClass(ICSVExporter, MedicalHistoryExporter)
+        return
+
+    def test_export_all(self):
+        # we can really export students
+        # set values we can expect in export file
+        self.setup_student(self.student)
+        self.student.sore_throat = True
+        exporter = MedicalHistoryExporter()
+        exporter.export_all(self.app, self.outfile)
+        result = open(self.outfile, 'rb').read()
+        self.assertMatches(
+            'asthma,body_pains,breathing,catarrh,company_confirmed,'
+            'company_suspected,cough,diabetes,fever,headaches,hypertension,'
+            'lagos_abuja,medical_updated,medicines,negative,obesity,'
+            'others,outside,positive,smell,sneezing,sore_throat,taste,'
+            'vaccination,weakness,student_id,display_fullname,'
+            'matric_number,faccode,depcode,state,current_session,'
+            'current_level\r\n'
+            ',,,,,,,,,,,,,,,,,,,,,1,,,,A111111,Anna M. Tester,234,'
+            'NA,NA,created,2012,200\r\n' , result
+            )
+        return
