Index: main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py	(revision 5889)
+++ main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py	(revision 5890)
@@ -36,5 +36,5 @@
 
 class LoginTest(FunctionalTestCase):
-    # Here we check login functionality.
+    # Here we check login view of applicants containers.
     
     layer = FunctionalLayer
@@ -68,4 +68,30 @@
         return
 
+    def test_anonymous_invalid_creds(self):
+        # Anonymous users giving invalid credentials stay at the page
+        path = 'http://localhost/app/applicants/testapplicants/login'
+        self.browser.open(path)
+        # We do not give credentials but send the form as-is
+        submit = self.browser.getControl(name='SUBMIT')
+        submit.click()
+        # We are still at the same page...
+        self.assertEqual(
+            self.browser.url,
+            'http://localhost/app/applicants/testapplicants/login'
+            )
+        self.assertEqual(self.browser.headers['Status'], '200 Ok')
+        return
+
+    def test_anonymous_invalid_creds_warning(self):
+        # Entering wrong credentials will yield a warning
+        path = 'http://localhost/app/applicants/testapplicants/login'
+        self.browser.open(path)
+        # We do not give credentials but send the form as-is
+        submit = self.browser.getControl(name='SUBMIT')
+        submit.click()
+        self.assertTrue(
+            'Entered credentials are invalid' in self.browser.contents)
+        return
+
 def suite():
     suite = unittest.TestSuite()
