Ignore:
Timestamp:
11 Jun 2018, 07:29:33 (7 years ago)
Author:
Henrik Bettermann
Message:

Add validation expression for JAMB registration numbers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r14741 r15045  
    2929from kofacustom.nigeria.testing import FunctionalLayer
    3030
     31curr_year = datetime.datetime.now().year
    3132
    3233class NigeriaStudentExporterTest(StudentImportExportSetup):
     
    115116        # set values we can expect in export file
    116117        self.setup_student(self.student)
    117         self.student['payments']['my-payment'].r_company = 'interswatch'
     118        self.student['payments']['my-payment'].r_company = 'interswitch'
    118119        self.student['payments']['my-payment'].r_card_num = '789'
    119120        exporter = NigeriaStudentPaymentExporter()
     
    127128            'current_session\r\n'
    128129            '666,12.12,2012-04-01 13:12:01#,,schoolfee,1,my-id,p-item,'
    129             '100,2011,paid,2012-04-01 14:12:01#,,12.12,'
    130             '789,r-code,interswatch,,,,A111111,created,2012\r\n',
     130            '100,%s,paid,2012-04-01 14:12:01#,,12.12,'
     131            '789,r-code,interswitch,,,,A111111,created,2012\r\n' % (curr_year-6),
    131132            result
    132133            )
Note: See TracChangeset for help on using the changeset viewer.