Changeset 9356


Ignore:
Timestamp:
19 Oct 2012, 16:26:27 (12 years ago)
Author:
Henrik Bettermann
Message:

Capital O was mixed up with Zero. Capital O is an accepted verdict for next session transition. Therefore the test passed and did not test what it was expected to test.

File:
1 edited

Legend:

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

    r9239 r9356  
    124124        # A, ug_ft, 100
    125125        self.assertTrue(self.student['studycourse'].next_session_allowed)
    126         # O, ug_ft, 100
    127         self.student['studycourse'].current_verdict = 'O'
    128         self.assertTrue(self.student['studycourse'].next_session_allowed)
    129         # O, ug_ft, 200
     126        # Zero, ug_ft, 100
     127        self.student['studycourse'].current_verdict = '0' # Zero!
     128        self.assertTrue(self.student['studycourse'].next_session_allowed)
     129        # Zero, ug_ft, 200
    130130        self.student['studycourse'].current_level = 200
    131131        self.assertFalse(self.student['studycourse'].next_session_allowed)
    132         # O, de_ft, 200
     132        # Zero, de_ft, 200
    133133        self.student['studycourse'].certificate.study_mode = 'de_ft'
    134134        self.assertTrue(self.student['studycourse'].next_session_allowed)
    135         # O, ph_ft, 300
     135        # Zero, ph_ft, 300
    136136        self.student['studycourse'].certificate.study_mode = 'ph_ft'
    137137        self.student['studycourse'].current_level = 300
    138138        self.assertTrue(self.student['studycourse'].next_session_allowed)
    139         # O, ph_ft, 400
     139        # Zero, ph_ft, 400
    140140        self.student['studycourse'].current_level = 400
    141141        self.assertFalse(self.student['studycourse'].next_session_allowed)
Note: See TracChangeset for help on using the changeset viewer.