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 14288)
+++ main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py	(revision 14306)
@@ -38,4 +38,5 @@
 from waeup.kofa.authentication import LocalRoleSetEvent
 from waeup.kofa.browser.tests.test_pdf import samples_dir
+from waeup.kofa.applicants.container import ApplicantsContainer
 from waeup.aaue.testing import FunctionalLayer
 
@@ -1107,2 +1108,29 @@
         self.assertEqual(self.browser.headers['Status'], '200 Ok')
         self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
+
+    def test_alumni_request_pw(self):
+        # Add an applicants container
+        applicantscontainer = ApplicantsContainer()
+        applicantscontainer.code = u'trans2017'
+        applicantscontainer.prefix = 'trans'
+        applicantscontainer.year = 2017
+        applicantscontainer.title = u'This is the trans2017 container'
+        applicantscontainer.application_category = 'no'
+        applicantscontainer.mode = 'create'
+        applicantscontainer.strict_deadline = True
+        delta = timedelta(days=10)
+        applicantscontainer.startdate = datetime.now(pytz.utc) - delta
+        applicantscontainer.enddate = datetime.now(pytz.utc) + delta
+        self.app['applicants']['trans2017'] = applicantscontainer
+        self.applicantscontainer = self.app['applicants']['trans2017']
+        # Student with wrong number can't be found.
+        # Applicant is redirected to application section.
+        self.browser.open('http://localhost/app/alumni_requestpw')
+        self.browser.getControl(name="form.lastname").value = 'Tester'
+        self.browser.getControl(name="form.number").value = 'anynumber'
+        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
+        self.browser.getControl("Send login credentials").click()
+        self.assertTrue('No student record found.'
+            in self.browser.contents)
+        self.assertEqual(self.browser.url,
+            'http://localhost/app/applicants/trans2017/register')
