Changeset 10843 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 11 Dec 2013, 13:22:38 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r10832 r10843 893 893 return 894 894 895 def test_pay_special_fee(self):895 def prepare_special_container(self): 896 896 # Add special application container 897 897 container_name = u'special%s' % session_1 … … 913 913 # because managers are allowed to edit this required field 914 914 applicant.reg_number = u'12345' 915 self.special_applicant = applicant 915 916 self.app['applicants'][container_name].addApplicant(applicant) 916 917 IUserAccount( … … 922 923 configuration.transcript_fee = 200.0 923 924 self.app['configuration'].addSessionConfiguration(configuration) 925 926 927 def test_pay_special_fee(self): 928 self.prepare_special_container() 924 929 # Login 925 930 self.browser.open(self.login_path) 926 931 self.browser.getControl( 927 name="form.login").value = applicant.applicant_id932 name="form.login").value = self.special_applicant.applicant_id 928 933 self.browser.getControl(name="form.password").value = 'apwd' 929 934 self.browser.getControl("Login").click() 935 applicant_path = self.browser.url 930 936 self.browser.getLink("Edit application record").click() 931 937 self.browser.getControl(name="form.firstname").value = 'John' … … 947 953 self.assertTrue( 948 954 '<span>200.0</span>' in self.browser.contents) 949 return 950 955 self.browser.getLink("Logout").click() 956 # Login as manager 957 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 958 self.browser.open(applicant_path + '/manage') 959 # When unselecting special_application, the payment ticket 960 # can still be created. 961 self.browser.getControl(name="form.special_application").value = [ 962 ''] 963 self.browser.getControl("Save").click() 964 self.browser.getControl("Add online payment ticket").click() 965 self.assertMatches('...Payment ticket created...', 966 self.browser.contents) 967 self.assertMatches('...<span>--</span>...', 968 self.browser.contents) 969 return 951 970 952 971 def test_duplicate_choice(self):
Note: See TracChangeset for help on using the changeset viewer.