Changeset 9672 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 17 Nov 2012, 22:43:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_reports.py
r9671 r9672 20 20 verifyObject(IStudentsReport, obj) 21 21 return 22 23 def test_repr(self):24 # exec(students_report.__repr__()) <=> students_report25 obj1 = StudentsReport(2010, 'Undergraduate Full-Time', author='Bob')26 self.assertEqual(27 obj1.__repr__(),28 "StudentsReport(2010, 'Undergraduate Full-Time', author='Bob')")29 obj_from_str = eval(obj1.__repr__())30 self.assertEqual(obj_from_str.session, '2010/2011')31 self.assertEqual(obj_from_str.mode, 'Undergraduate Full-Time')32 self.assertEqual(obj_from_str.author, 'Bob')33 return34 35 #def test_str(self):36 # # StudentsReport provide a nice string representation37 # 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]')42 # return43 22 44 23 def test_title(self):
Note: See TracChangeset for help on using the changeset viewer.