Ignore:
Timestamp:
29 Feb 2016, 07:23:48 (9 years ago)
Author:
Henrik Bettermann
Message:

Add study modes mug_ft and mde_ft. All students, except those with entry mode mug_ft and mde_ft, have pay concessional fee before getting a matric number.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r13720 r13749  
    444444
    445445    def test_set_matric_number(self):
     446        payment = createObject('waeup.StudentOnlinePayment')
     447        payment.p_category = u'concessional'
     448        payment.p_id = u'anyid'
     449        payment.p_state = u'paid'
     450        self.student['payments']['anykey'] = payment
    446451        # Login as student
    447452        self.browser.open(self.login_path)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r13664 r13749  
    130130        site['configuration'].next_matric_integer_3 = 1
    131131        self.student.matric_number = None
     132        msg, mnumber = utils.setMatricNumber(self.student)
     133        self.assertEqual(msg, 'Matriculation number cannot be set.')
     134        payment = createObject('waeup.StudentOnlinePayment')
     135        payment.p_category = u'concessional'
     136        payment.p_id = u'anyid'
     137        payment.p_state = u'paid'
     138        self.student['payments']['anykey'] = payment
    132139        # Regular ft students have a matric number without leading constant.
    133140        msg, mnumber = utils.setMatricNumber(self.student)
Note: See TracChangeset for help on using the changeset viewer.