- Timestamp:
- 14 Jun 2012, 08:07:41 (13 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/main/waeup.uniben/trunk/src/waeup/uniben merged eligible /main/waeup.sirp/branches/uli-studentpw/src/waeup/fceokene 6703-6755
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r8599 r8722 19 19 import shutil 20 20 import tempfile 21 from StringIO import StringIO 21 22 from hurry.workflow.interfaces import IWorkflowState 22 23 from zope.component.hooks import setSite, clearSite … … 26 27 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 27 28 from waeup.kofa.testing import FunctionalTestCase 29 from waeup.kofa.interfaces import ( 30 IExtFileStore, IFileStoreNameChooser) 28 31 from waeup.kofa.students.batching import StudentProcessor 29 32 from waeup.kofa.students.interfaces import IStudentsUtils … … 287 290 self.browser.getControl(name="form.password").value = 'spwd' 288 291 self.browser.getControl("Login").click() 292 # Even in state admitted students can't change the portait if 293 # application slip exists. 294 IWorkflowState(self.student).setState('admitted') 295 self.browser.open(self.student_path) 296 self.assertTrue('Change portrait' in self.browser.contents) 297 file_store = getUtility(IExtFileStore) 298 applicant_slip = 'My application slip' 299 file_id = IFileStoreNameChooser(self.student).chooseName( 300 attr="application_slip.pdf") 301 file_store.createFile(file_id, StringIO(applicant_slip)) 302 self.browser.open(self.student_path) 303 self.assertFalse('Change portrait' in self.browser.contents) 304 self.browser.open(self.student_path + '/change_portrait') 305 self.assertTrue('The requested form is locked' in self.browser.contents) 289 306 # Student can view and edit clearance data 290 307 self.browser.getLink("Clearance Data").click()
Note: See TracChangeset for help on using the changeset viewer.