Ignore:
Timestamp:
29 Aug 2013, 05:24:10 (11 years ago)
Author:
Henrik Bettermann
Message:

Derive information about passed and failed course.

File:
1 edited

Legend:

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

    r10539 r10553  
    786786        self.assertEqual(self.student['studycourse']['100']['COURSE1'].grade, 'C')
    787787        self.assertEqual(self.student['studycourse']['100']['COURSE1'].weight, 3)
    788         # We add another ticket to check if GPAwill be correctly calculated
     788        # We add another ticket to check if GPA will be correctly calculated
    789789        # (and rounded)
    790790        courseticket = createObject('waeup.CourseTicket')
     
    820820        self.assertTrue(
    821821            self.student['studycourse']['200']['COURSE1'].carry_over)
     822        # Passed and failed courses have been counted
     823        self.assertEqual(
     824            self.student['studycourse']['100'].passed_params,
     825            (1, 1, 13, 10, ['COURSE1']))
     826        self.assertEqual(
     827            self.student['studycourse']['200'].passed_params,
     828            (0, 0, 0, 0, []))
    822829        return
    823830
Note: See TracChangeset for help on using the changeset viewer.