Ignore:
Timestamp:
26 Apr 2012, 08:05:13 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename state to app_state according to reg_state in students.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py

    r8200 r8282  
    141141        # into two parts.
    142142        self.assertTrue(
    143             'applicant_id,application_date,application_number,course1,course2,'
     143            'app_state,applicant_id,application_date,application_number,course1,course2,'
    144144            'course_admitted,date_of_birth,display_fullname,email,firstname,'
    145145            'history,lastname,locked,middlename,notice,password,phone,'
    146             'reg_number,screening_score,screening_venue,sex,state,'
     146            'reg_number,screening_score,screening_venue,sex,'
    147147            'student_id\r\n'
    148             'dp2011_654321,,654321,,,,,Anna Tester,,Anna,'
     148            'initialized,dp2011_654321,,654321,,,,,Anna Tester,,Anna,'
    149149            in result)
    150150        self.assertTrue(
    151151            'Application initialized by system\'],Tester,'
    152             '0,,,,,,,,,initialized,\r\n'
     152            '0,,,,,,,,,\r\n'
    153153            in result)
    154154        return
     
    164164        # history dict. We skip the date and split the comparison
    165165        # into two parts.
    166         self.assertTrue(
    167             'applicant_id,application_date,application_number,course1,course2,'
     166        print result
     167        self.assertTrue(
     168            'app_state,applicant_id,application_date,application_number,course1,course2,'
    168169            'course_admitted,date_of_birth,display_fullname,email,firstname,'
    169170            'history,lastname,locked,middlename,notice,password,phone,'
    170             'reg_number,screening_score,screening_venue,sex,state,'
     171            'reg_number,screening_score,screening_venue,sex,'
    171172            'student_id\r\n'
    172             'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04,'
     173            'initialized,dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04,'
    173174            'Anna M. Tester,anna@sample.com,Anna,'
    174175            in result)
     
    176177            'Application initialized by system\'],'
    177178            'Tester,0,M.,"Some notice\nin lines.",any password,'
    178             '+234-123-12345,123456,98,Exam Room,f,initialized,\r\n'
     179            '+234-123-12345,123456,98,Exam Room,f,\r\n'
    179180            in result)
    180181
     
    189190        result = open(self.outfile, 'rb').read()
    190191        self.assertTrue(
    191             'applicant_id,application_date,application_number,course1,course2,'
     192            'app_state,applicant_id,application_date,application_number,course1,course2,'
    192193            'course_admitted,date_of_birth,display_fullname,email,firstname,'
    193194            'history,lastname,locked,middlename,notice,password,phone,'
    194             'reg_number,screening_score,screening_venue,sex,state,'
     195            'reg_number,screening_score,screening_venue,sex,'
    195196            'student_id\r\n'
    196             'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04,'
     197            'initialized,dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04,'
    197198            'Anna M. Tester,anna@sample.com,Anna,'
    198199            in result)
     
    200201            'Application initialized by system\'],'
    201202            'Tester,0,M.,"Some notice\nin lines.",any password,'
    202             '+234-123-12345,123456,98,Exam Room,f,initialized,\r\n'
    203             in result)
    204         return
     203            '+234-123-12345,123456,98,Exam Room,f,\r\n'
     204            in result)
     205        return
Note: See TracChangeset for help on using the changeset viewer.