Changeset 9332 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 12 Oct 2012, 16:40:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9331 r9332 686 686 self.browser.getControl("Remove selected").click() 687 687 self.assertMatches('...Successfully removed...', self.browser.contents) 688 # Removing levels is properly logged 689 logfile = os.path.join( 690 self.app['datacenter'].storage, 'logs', 'students.log') 691 logcontent = open(logfile).read() 692 self.assertTrue('zope.mgr - students.browser.StudyCourseManageFormPage ' 693 '- K1000000 - removed: 100' in logcontent) 688 694 # Add level again 689 695 self.browser.getControl(name="addlevel").value = ['100'] … … 703 709 self.browser.getControl("Remove selected", index=0).click() 704 710 self.assertTrue('Successfully removed' in self.browser.contents) 711 # Removing course tickets is properly logged 712 logfile = os.path.join( 713 self.app['datacenter'].storage, 'logs', 'students.log') 714 logcontent = open(logfile).read() 715 self.assertTrue('zope.mgr - students.browser.StudyLevelManageFormPage ' 716 '- K1000000 - removed: COURSE1' in logcontent) 705 717 self.browser.getControl("Add course ticket").click() 706 718 self.browser.getControl(name="form.course").value = ['COURSE1']
Note: See TracChangeset for help on using the changeset viewer.