Changeset 9663 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 17 Nov 2012, 11:52:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_reports.py
r9662 r9663 23 23 def test_repr(self): 24 24 # exec(students_report.__repr__()) <=> students_report 25 obj1 = StudentsReport(2010, 'Undergraduate Full-Time' )25 obj1 = StudentsReport(2010, 'Undergraduate Full-Time', author='Bob') 26 26 self.assertEqual( 27 27 obj1.__repr__(), 28 "StudentsReport(2010, 'Undergraduate Full-Time', author=' System')")28 "StudentsReport(2010, 'Undergraduate Full-Time', author='Bob')") 29 29 obj_from_str = eval(obj1.__repr__()) 30 30 self.assertEqual(obj_from_str.session, '2010/2011') 31 31 self.assertEqual(obj_from_str.mode, 'Undergraduate Full-Time') 32 self.assertEqual(obj_from_str.author, 'Bob') 32 33 return 33 34
Note: See TracChangeset for help on using the changeset viewer.