Changeset 6896 for main/waeup.sirp
- Timestamp:
- 14 Oct 2011, 09:00:42 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r6877 r6896 134 134 135 135 entry_mode = schema.Choice( 136 title = u' Study Mode',136 title = u'Entry Mode', 137 137 vocabulary = study_modes, 138 138 default = u'ug_ft', -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r6876 r6896 131 131 # Populate university 132 132 self.certificate = createObject('waeup.Certificate') 133 self.certificate.code = 'CERT1'133 self.certificate.code = u'CERT1' 134 134 self.certificate.application_category = 'basic' 135 self.certificate.study_mode = 'ug_ft' 135 136 self.certificate.start_level = 100 136 137 self.certificate.end_level = 500 … … 621 622 return 622 623 623 def test_manage_ access(self):624 # Managers can add online payment tickets624 def test_manage_payments(self): 625 # Managers can add and remove online payment tickets 625 626 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 626 627 self.browser.open(self.payments_student_path) 627 628 self.browser.getLink("Manage").click() 628 629 self.browser.getControl("Add online payment ticket").click() 630 self.browser.getControl("Create ticket").click() 631 self.assertTrue('amount could not be determined' in self.browser.contents) 632 self.browser.open(self.manage_student_path) 633 self.browser.getControl(name="transition").value = ['admit'] 634 self.browser.getControl("Save").click() 635 self.browser.getControl(name="transition").value = ['start_clearance'] 636 self.browser.getControl("Save").click() 637 self.browser.getControl(name="transition").value = ['request_clearance'] 638 self.browser.getControl("Save").click() 639 self.browser.getControl(name="transition").value = ['clear'] 640 self.browser.getControl("Save").click() 641 self.browser.open(self.payments_student_path + '/addop') 642 self.browser.getControl("Create ticket").click() 643 self.assertMatches('...ticket created...', 644 self.browser.contents) 645 ctrl = self.browser.getControl(name='val_id') 646 #import pdb; pdb.set_trace() 647 value = ctrl.options[0] 648 ctrl.getControl(value=value).selected = True 649 self.browser.getControl("Remove selected", index=0).click() 650 self.assertTrue('Successfully removed' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.