Index: main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py	(revision 13873)
+++ main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py	(revision 13886)
@@ -887,7 +887,4 @@
         self.login()
         self.browser.open(self.edit_path)
-        # Payment tickets can't be created before the form has been validated
-        self.browser.getControl("Add online payment ticket").click()
-        self.assertTrue('Required input is missing' in self.browser.contents)
         self.fill_correct_values()
         # We have to save the form otherwise the filled fields will be cleared
@@ -895,4 +892,9 @@
         # requires a filled form but does not save it
         self.browser.getControl("Save").click()
+        # Payment section does not appear if application fee isn't set
+        self.assertFalse('Payment Tickets' in self.browser.contents)
+        self.assertFalse('Add online payment' in self.browser.contents)
+        self.applicantscontainer.application_fee = 200.0
+        self.browser.open(self.edit_path)
         self.browser.getControl("Add online payment ticket").click()
         # Session object missing
@@ -902,5 +904,4 @@
         configuration = SessionConfiguration()
         configuration.academic_session = session_1
-        configuration.application_fee = 200.0
         self.app['configuration'].addSessionConfiguration(configuration)
         self.browser.open(self.edit_path)
@@ -910,4 +911,6 @@
         self.assertMatches('...Activation Code...',
                            self.browser.contents)
+        self.assertTrue(
+            '<span>200.0</span>' in self.browser.contents)
         # Payment ticket can be removed if they haven't received a
         # valid callback
@@ -1008,28 +1011,4 @@
         return
 
-    def test_pay_container_application_fee(self):
-        self.login()
-        self.browser.open(self.edit_path)
-        self.fill_correct_values()
-        self.browser.getControl("Save").click()
-        configuration = SessionConfiguration()
-        configuration.academic_session = session_1
-        self.applicantscontainer.application_fee = 120.0
-        configuration.application_fee = 9999.9
-        self.app['configuration'].addSessionConfiguration(configuration)
-        self.browser.open(self.edit_path)
-        self.browser.getControl("Add online payment ticket").click()
-        self.assertMatches('...Payment ticket created...',
-                           self.browser.contents)
-        self.assertMatches('...Payment ticket created...',
-                           self.browser.contents)
-        self.assertFalse(
-            '<span>9999.9</span>' in self.browser.contents)
-        self.assertTrue(
-            '<span>120.0</span>' in self.browser.contents)
-        self.assertTrue(
-            '<span>Application Fee</span>' in self.browser.contents)
-        return
-
     def prepare_special_container(self):
         # Add special application container
