Changeset 9669 for main


Ignore:
Timestamp:
17 Nov 2012, 12:36:19 (12 years ago)
Author:
uli
Message:

Add tests for StudentsReport?.str()

File:
1 edited

Legend:

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

    r9663 r9669  
    3131        self.assertEqual(obj_from_str.mode, 'Undergraduate Full-Time')
    3232        self.assertEqual(obj_from_str.author, 'Bob')
     33        return
     34
     35    def test_str(self):
     36        # StudentsReport provide a nice string representation
     37        obj = StudentsReport(2010, 'Undergraduate Full-Time', author='Bob')
     38        self.assertEqual(
     39            obj.__str__()[:65],
     40            'Students Report '
     41            '[session=2010/2011, mode=Undergraduate Full-Time]')
    3342        return
    3443
Note: See TracChangeset for help on using the changeset viewer.