Changeset 6750 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 13 Sep 2011, 16:21:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r6714 r6750 34 34 from hurry.workflow.interfaces import IWorkflowInfo 35 35 from waeup.sirp.testing import ( 36 FunctionalLayer, FunctionalTestCase, remove_logger, 37 remove_new_loggers, 38 ) 36 FunctionalLayer, FunctionalTestCase, remove_new_loggers, 37 ) 39 38 from waeup.sirp.app import University 40 39 from waeup.sirp.students.container import StudentsContainer … … 78 77 student = Student() 79 78 student.name = u'Anna Tester' 79 student.reg_number = u'123' 80 student.matric_number = u'234' 80 81 self.test_student_id = self.app['students'].addStudent(student) 81 82 # Set password … … 164 165 self.browser.getControl("Create student record").click() 165 166 self.assertTrue('Student record created' in self.browser.contents) 167 168 # Registration numbers must be unique 169 self.browser.getLink("Manage").click() 170 self.browser.getControl(name="form.reg_number").value = '123' 171 self.browser.getControl("Save").click() 172 self.assertMatches('...value already exists in catalog...', 173 self.browser.contents) 166 174 167 175 self.browser.open(self.container_path)
Note: See TracChangeset for help on using the changeset viewer.