Index: main/waeup.cas/trunk/waeup/cas/tests/test_server.py
===================================================================
--- main/waeup.cas/trunk/waeup/cas/tests/test_server.py	(revision 10412)
+++ main/waeup.cas/trunk/waeup/cas/tests/test_server.py	(revision 10413)
@@ -200,4 +200,18 @@
         assert b'username' in resp.body
         assert 'Set-Cookie' not in resp.headers
+
+    def test_login_warn(self):
+        # 2.2.1 as a credential acceptor, with `warn` set we require confirm
+        app = CASServer()
+        tgc = create_tgc_value()
+        app.db.add(tgc)
+        value = str(tgc.value)
+        params = 'warn=true&service=http%3A%2F%2Fwww.service.com'
+        req = Request.blank('https://localhost/login?%s' % params)
+        req.headers['Cookie'] = 'cas-tgc=%s' % value
+        resp = app(req)
+        # without warn, we would get a redirect
+        assert resp.status == '200 OK'
+        assert b'CAS login successful' in resp.body
 
 
