Index: main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
===================================================================
--- main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py	(revision 8753)
+++ main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py	(revision 8775)
@@ -261,15 +261,8 @@
         self.assertMatches('...ticket created...',
                            self.browser.contents)
-        # In state returning we can't add a new school fee ticket 
-        # for the next session because the second instalment is missing ...
-        IWorkflowState(self.student).setState('returning')
-        self.browser.open(self.payments_path + '/addop')
-        self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
-        self.browser.getControl("Create ticket").click()
-        self.assertMatches('...2nd school fee instalment has not yet been paid...',
-                           self.browser.contents)
+        # We can't add the 2nd instalment ticket because the
+        # first one has not yet been approved.
         self.browser.open(self.payments_path + '/addop')
         self.browser.getControl(name="form.p_category").value = ['schoolfee_2']
-        # ... and the first one has not yet been approved.
         self.browser.getControl("Create ticket").click()
         self.assertMatches('...1st school fee instalment has not yet been paid...',
@@ -289,5 +282,7 @@
         p_id = ctrl.options[1]
         self.browser.open(self.payments_path + '/' + p_id + '/approve')
-        # ... and finally add the 1st instalment for the next session.
+        # ... and finally add the 1st instalment for the next session
+        # provided that student is returning.
+        IWorkflowState(self.student).setState('returning')
         self.browser.open(self.payments_path + '/addop')
         self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
