Index: main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py	(revision 8309)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py	(revision 8322)
@@ -175,4 +175,5 @@
         configuration = createObject('waeup.SessionConfiguration')
         configuration.academic_session = 2004
+        configuration.clearance_fee = 3456.0
         self.app['configuration'].addSessionConfiguration(configuration)
 
@@ -1294,4 +1295,8 @@
                           self.browser.contents)
 
+        # The authorized amount has been stored in the access code
+        self.assertEqual(
+            self.app['accesscodes']['SFE-0'].values()[0].cost,40000.0)
+
         # Callback can't be applied twice
         self.browser.open(payment_url + '/simulate_callback')
@@ -1349,5 +1354,6 @@
         pin = self.app['accesscodes']['CLR-0'].keys()[0]
         ac = self.app['accesscodes']['CLR-0'][pin]
-        ac.owner = self.student_id
+        self.assertEqual(ac.owner, self.student_id)
+        self.assertEqual(ac.cost, 3456.0)
         return
 
@@ -1384,5 +1390,6 @@
         pin = self.app['accesscodes']['CLR-0'].keys()[0]
         ac = self.app['accesscodes']['CLR-0'][pin]
-        ac.owner = self.student_id
+        self.assertEqual(ac.owner, self.student_id)
+        self.assertEqual(ac.cost, 3456.0)
 
         # Students can open the pdf payment slip
@@ -1493,5 +1500,5 @@
         pin = self.app['accesscodes']['HOS-0'].keys()[0]
         ac = self.app['accesscodes']['HOS-0'][pin]
-        ac.owner = self.student_id
+        self.assertEqual(ac.owner, self.student_id)
         parts = pin.split('-')[1:]
         sfeseries, sfenumber = parts
@@ -1622,5 +1629,4 @@
         pin = self.app['accesscodes']['HOS-0'].keys()[0]
         ac = self.app['accesscodes']['HOS-0'][pin]
-        ac.owner = u'Anybody'
         parts = pin.split('-')[1:]
         sfeseries, sfenumber = parts
@@ -1640,4 +1646,5 @@
         self.assertMatches('...Activation code is invalid...',
                            self.browser.contents)
+        ac.owner = u'Anybody'
         self.browser.getControl(name="ac_series").value = sfeseries
         self.browser.getControl(name="ac_number").value = sfenumber
