Changeset 6753 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 14 Sep 2011, 00:45:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r6750 r6753 25 25 import shutil 26 26 import tempfile 27 from StringIO import StringIO28 27 from datetime import datetime 29 from mechanize import LinkNotFoundError30 28 from zope.component import createObject 31 29 from zope.component.hooks import setSite, clearSite 32 30 from zope.security.interfaces import Unauthorized 33 31 from zope.testbrowser.testing import Browser 34 from hurry.workflow.interfaces import IWorkflowInfo 35 from waeup.sirp.testing import ( 36 FunctionalLayer, FunctionalTestCase, remove_new_loggers, 37 ) 32 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase 38 33 from waeup.sirp.app import University 39 from waeup.sirp.students.container import StudentsContainer40 34 from waeup.sirp.students.student import Student 41 35 from waeup.sirp.university.faculty import Faculty … … 81 75 self.test_student_id = self.app['students'].addStudent(student) 82 76 # Set password 83 IUserAccount(self.app['students'][self.test_student_id]).setPassword('spwd') 77 IUserAccount( 78 self.app['students'][self.test_student_id]).setPassword('spwd') 84 79 85 80 self.login_path = 'http://localhost/app/login' … … 276 271 # Students can access their own objects 277 272 # and can perform actions 278 remove_new_loggers(self.functional_old_loggers)279 273 self.browser.open(self.login_path) 280 274 self.browser.getControl(name="form.login").value = self.test_student_id
Note: See TracChangeset for help on using the changeset viewer.