Changeset 7433 for main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests
- Timestamp:
- 22 Dec 2011, 07:05:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py
r7432 r7433 711 711 return 712 712 713 def test_certificate_removed(self): 714 self.login() 715 self.browser.open(self.edit_path) 716 self.fill_correct_values() 717 self.browser.getControl("Save").click() 718 self.browser.open(self.view_path) 719 self.assertTrue( 720 'Unnamed Certificate' in self.browser.contents) 721 self.browser.open(self.edit_path) 722 self.assertTrue( 723 '<option selected="selected" value="CERT1">' in self.browser.contents) 724 # Now we remove the certificate 725 del self.app['faculties']['fac1']['dep1'].certificates['CERT1'] 726 # The certificate is still shown in display mode 727 self.browser.open(self.view_path) 728 self.assertTrue( 729 'Unnamed Certificate' in self.browser.contents) 730 # The certificate is still selectable in edit mode so that it won't 731 # be automatically replaced by another (arbitrary) certificate 732 self.browser.open(self.edit_path) 733 self.assertTrue( 734 '<option selected="selected" value="CERT1">' in self.browser.contents) 735 # Consequently, the certificate is still shown after saving the form 736 self.browser.getControl("Save").click() 737 self.browser.open(self.view_path) 738 self.assertTrue( 739 'Unnamed Certificate' in self.browser.contents) 740 713 741 class ApplicantRegisterTests(ApplicantsFullSetup): 714 742 # Tests for applicant registration
Note: See TracChangeset for help on using the changeset viewer.