Ignore:
Timestamp:
17 Nov 2012, 11:52:20 (12 years ago)
Author:
uli
Message:

Also check author when generating representations of StudentsReports?.

File:
1 edited

Legend:

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

    r9662 r9663  
    2323    def test_repr(self):
    2424        # exec(students_report.__repr__()) <=> students_report
    25         obj1 = StudentsReport(2010, 'Undergraduate Full-Time')
     25        obj1 = StudentsReport(2010, 'Undergraduate Full-Time', author='Bob')
    2626        self.assertEqual(
    2727            obj1.__repr__(),
    28             "StudentsReport(2010, 'Undergraduate Full-Time', author='System')")
     28            "StudentsReport(2010, 'Undergraduate Full-Time', author='Bob')")
    2929        obj_from_str = eval(obj1.__repr__())
    3030        self.assertEqual(obj_from_str.session, '2010/2011')
    3131        self.assertEqual(obj_from_str.mode, 'Undergraduate Full-Time')
     32        self.assertEqual(obj_from_str.author, 'Bob')
    3233        return
    3334
Note: See TracChangeset for help on using the changeset viewer.