Index: /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py
===================================================================
--- /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py	(revision 15044)
+++ /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py	(revision 15045)
@@ -37,5 +37,5 @@
 from waeup.kofa.students.vocabularies import nats_vocab, GenderSource
 from kofacustom.nigeria.interfaces import (
-    LGASource, high_qual, high_grade, exam_types)
+    LGASource, high_qual, high_grade, exam_types, validate_jamb_reg_number)
 from kofacustom.nigeria.interfaces import MessageFactory as _
 from kofacustom.nigeria.payments.interfaces import INigeriaOnlinePayment
@@ -357,4 +357,5 @@
         title = _(u'JAMB Registration Number'),
         required = False,
+        constraint=validate_jamb_reg_number,
         )
     notice = schema.Text(
Index: /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interfaces.py
===================================================================
--- /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interfaces.py	(revision 15044)
+++ /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interfaces.py	(revision 15045)
@@ -17,4 +17,5 @@
 ##
 
+import re
 import zope.i18nmessageid
 from zope import schema
@@ -76,4 +77,16 @@
     )
 
+# Define a validation method for JAMB reg numbers 
+class NotJAMBRegNumber(schema.ValidationError):
+    __doc__ = u"Invalid JAMB registration number"
+
+#: Regular expression to check jamb_reg_number formats.
+check_jamb_reg_number = re.compile(r"^[A-Z]{2}\d{8}$").match
+
+def validate_jamb_reg_number(value):
+    if not check_jamb_reg_number(value):
+        raise NotJAMBRegNumber(value)
+    return True
+
 #lgas_vocab = SimpleKofaVocabulary(
 #    *sorted([(x[1],x[0]) for x in LGAS]))
Index: /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py
===================================================================
--- /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py	(revision 15044)
+++ /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py	(revision 15045)
@@ -29,4 +29,5 @@
 from kofacustom.nigeria.testing import FunctionalLayer
 
+curr_year = datetime.datetime.now().year
 
 class NigeriaStudentExporterTest(StudentImportExportSetup):
@@ -115,5 +116,5 @@
         # set values we can expect in export file
         self.setup_student(self.student)
-        self.student['payments']['my-payment'].r_company = 'interswatch'
+        self.student['payments']['my-payment'].r_company = 'interswitch'
         self.student['payments']['my-payment'].r_card_num = '789'
         exporter = NigeriaStudentPaymentExporter()
@@ -127,6 +128,6 @@
             'current_session\r\n'
             '666,12.12,2012-04-01 13:12:01#,,schoolfee,1,my-id,p-item,'
-            '100,2011,paid,2012-04-01 14:12:01#,,12.12,'
-            '789,r-code,interswatch,,,,A111111,created,2012\r\n',
+            '100,%s,paid,2012-04-01 14:12:01#,,12.12,'
+            '789,r-code,interswitch,,,,A111111,created,2012\r\n' % (curr_year-6),
             result
             )
