Index: main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
===================================================================
--- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py	(revision 13341)
+++ main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py	(revision 13389)
@@ -105,11 +105,10 @@
         self.browser.open(self.payments_path + '/addop')
 
-        # Maint payment checking disabled on 5th Dec 2014
-        #self.browser.getControl(name="form.p_category").value = ['schoolfee']
-        #self.browser.getControl("Create ticket").click()
-        #self.assertMatches('...Book and pay for accommodation first...',
-        #                   self.browser.contents)
-        ## In KwaraPoly only returning students can create school fee payment
-        ## without having paid accommodation fee
+        self.browser.getControl(name="form.p_category").value = ['schoolfee']
+        self.browser.getControl("Create ticket").click()
+        self.assertMatches('...Book and pay for accommodation first...',
+                           self.browser.contents)
+        # In KwaraPoly only returning students can create school fee payment
+        # without having paid accommodation fee
 
         IWorkflowState(self.student).setState('returning')
@@ -222,15 +221,14 @@
         self.assertEqual(we_ft(self.student), 'ft')
 
-        # Maint payment checking disabled on 5th Dec 2014
-        #error, payment = utils.setPaymentDetails('schoolfee',self.student)
-        #self.assertEqual(error,
-        #    'Book and pay for accommodation first before making'
-        #    ' school fee payments.')
-        ## We add a fake maint. payment ticket to meet the condition
-        #maint_payment = createObject('waeup.StudentOnlinePayment')
-        #self.student['payments']['any_key'] = maint_payment
-        #maint_payment.p_category = 'hostel_maintenance'
-        #maint_payment.p_state = 'paid'
-        #maint_payment.p_session = 2004
+        error, payment = utils.setPaymentDetails('schoolfee',self.student)
+        self.assertEqual(error,
+            'Book and pay for accommodation first before making'
+            ' school fee payments.')
+        # We add a fake maint. payment ticket to meet the condition
+        maint_payment = createObject('waeup.StudentOnlinePayment')
+        self.student['payments']['any_key'] = maint_payment
+        maint_payment.p_category = 'hostel_maintenance'
+        maint_payment.p_state = 'paid'
+        maint_payment.p_session = 2004
 
         error, payment = utils.setPaymentDetails('schoolfee',self.student)
