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 15285)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py	(revision 15287)
@@ -53,4 +53,5 @@
 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase
 from waeup.kofa.browser.tests.test_pdf import samples_dir
+from waeup.kofa.tests.test_authentication import SECRET
 
 PH_LEN = 15911  # Length of placeholder file
@@ -1521,5 +1522,5 @@
     def init_clearance_officer(self):
         # Create clearance officer
-        self.app['users'].addUser('mrclear', 'mrclearsecret')
+        self.app['users'].addUser('mrclear', SECRET)
         self.app['users']['mrclear'].email = 'mrclear@foo.ng'
         self.app['users']['mrclear'].title = 'Carlo Pitter'
@@ -1543,5 +1544,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrclear'
-        self.browser.getControl(name="form.password").value = 'mrclearsecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
 
@@ -1702,5 +1703,5 @@
 
     def test_handle_courses_by_ca(self):
-        self.app['users'].addUser('mrsadvise', 'mrsadvisesecret')
+        self.app['users'].addUser('mrsadvise', SECRET)
         self.app['users']['mrsadvise'].email = 'mradvise@foo.ng'
         self.app['users']['mrsadvise'].title = u'Helen Procter'
@@ -1713,5 +1714,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrsadvise'
-        self.browser.getControl(name="form.password").value = 'mrsadvisesecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -1851,5 +1852,5 @@
     def test_find_students_in_faculties(self):
         # Create local students manager in faculty
-        self.app['users'].addUser('mrmanager', 'mrmanagersecret')
+        self.app['users'].addUser('mrmanager', SECRET)
         self.app['users']['mrmanager'].email = 'mrmanager@foo.ng'
         self.app['users']['mrmanager'].title = u'Volk Wagen'
@@ -1865,5 +1866,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrmanager'
-        self.browser.getControl(name="form.password").value = 'mrmanagersecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -2021,5 +2022,5 @@
         # StudentImpersonators can login as student
         # Create clearance officer
-        self.app['users'].addUser('mrofficer', 'mrofficersecret')
+        self.app['users'].addUser('mrofficer', SECRET)
         self.app['users']['mrofficer'].email = 'mrofficer@foo.ng'
         self.app['users']['mrofficer'].title = 'Harry Actor'
@@ -2030,5 +2031,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrofficer'
-        self.browser.getControl(name="form.password").value = 'mrofficersecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -2128,5 +2129,5 @@
             'Address line2\n\n')
         # Create officer with both roles
-        self.app['users'].addUser('mrtranscript', 'mrtranscriptsecret')
+        self.app['users'].addUser('mrtranscript', SECRET)
         self.app['users']['mrtranscript'].email = 'mrtranscript@foo.ng'
         self.app['users']['mrtranscript'].title = 'Ruth Gordon'
@@ -2138,5 +2139,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrtranscript'
-        self.browser.getControl(name="form.password").value = 'mrtranscriptsecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -2274,5 +2275,5 @@
         notify(grok.ObjectModifiedEvent(self.student))
         # Create transcript officer
-        self.app['users'].addUser('mrtranscript', 'mrtranscriptsecret')
+        self.app['users'].addUser('mrtranscript', SECRET)
         self.app['users']['mrtranscript'].email = 'mrtranscript@foo.ng'
         self.app['users']['mrtranscript'].title = 'Ruth Gordon'
@@ -2287,5 +2288,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrtranscript'
-        self.browser.getControl(name="form.password").value = 'mrtranscriptsecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -2315,5 +2316,5 @@
         notify(grok.ObjectModifiedEvent(self.student))
         # Create transcript signee
-        self.app['users'].addUser('mrtranscript', 'mrtranscriptsecret')
+        self.app['users'].addUser('mrtranscript', SECRET)
         self.app['users']['mrtranscript'].email = 'mrtranscript@foo.ng'
         self.app['users']['mrtranscript'].title = 'Ruth Gordon'
@@ -2328,5 +2329,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrtranscript'
-        self.browser.getControl(name="form.password").value = 'mrtranscriptsecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -4111,5 +4112,5 @@
     def test_export_departmet_officers(self):
         # Create department officer
-        self.app['users'].addUser('mrdepartment', 'mrdepartmentsecret')
+        self.app['users'].addUser('mrdepartment', SECRET)
         self.app['users']['mrdepartment'].email = 'mrdepartment@foo.ng'
         self.app['users']['mrdepartment'].title = 'Carlo Pitter'
@@ -4121,5 +4122,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrdepartment'
-        self.browser.getControl(name="form.password").value = 'mrdepartmentsecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -4145,5 +4146,5 @@
     def test_export_bursary_officers(self):
         # Create bursary officer
-        self.app['users'].addUser('mrbursary', 'mrbursarysecret')
+        self.app['users'].addUser('mrbursary', SECRET)
         self.app['users']['mrbursary'].email = 'mrbursary@foo.ng'
         self.app['users']['mrbursary'].title = 'Carlo Pitter'
@@ -4153,5 +4154,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mrbursary'
-        self.browser.getControl(name="form.password").value = 'mrbursarysecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -4183,5 +4184,5 @@
     def test_export_accommodation_officers(self):
         # Create bursary officer
-        self.app['users'].addUser('mracco', 'mraccosecret')
+        self.app['users'].addUser('mracco', SECRET)
         self.app['users']['mracco'].email = 'mracco@foo.ng'
         self.app['users']['mracco'].title = 'Carlo Pitter'
@@ -4191,5 +4192,5 @@
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = 'mracco'
-        self.browser.getControl(name="form.password").value = 'mraccosecret'
+        self.browser.getControl(name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         self.assertMatches('...You logged in...', self.browser.contents)
@@ -4234,5 +4235,5 @@
 
     def login_as_lecturer(self):
-        self.app['users'].addUser('mrslecturer', 'mrslecturersecret')
+        self.app['users'].addUser('mrslecturer', SECRET)
         self.app['users']['mrslecturer'].email = 'mrslecturer@foo.ng'
         self.app['users']['mrslecturer'].title = u'Mercedes Benz'
@@ -4253,5 +4254,5 @@
         self.browser.getControl(name="form.login").value = 'mrslecturer'
         self.browser.getControl(
-            name="form.password").value = 'mrslecturersecret'
+            name="form.password").value = SECRET
         self.browser.getControl("Login").click()
         # Store reused urls/paths
