Index: /main/waeup.cas/trunk/waeup/cas/tests/test_server.py
===================================================================
--- /main/waeup.cas/trunk/waeup/cas/tests/test_server.py	(revision 10489)
+++ /main/waeup.cas/trunk/waeup/cas/tests/test_server.py	(revision 10490)
@@ -417,4 +417,26 @@
             'http://service.com/?ticket=ST-')
 
+    def test_login_sso_with_service_additional_params1(self):
+        # we can get a service ticket also with a service providing
+        # get params
+        # this service url reads http://service.com/index.php?authCAS=CAS
+        service_url = 'http%3A%2F%2Fservice.com%2Findex.php%3FauthCAS%3DCAS'
+        resp1 = self.app.get(
+            'https://localhost/login?service=%s' % service_url)
+        assert resp1.status == '200 OK'
+        assert 'cas-tgc' not in self.app.cookies
+        form = resp1.forms[0]
+        form.set('username', 'bird')
+        form.set('password', 'bebop')
+        resp2 = form.submit('AUTHENTICATE')
+        assert resp2.status == '303 See Other'
+        location = resp2.headers['Location']
+        ticket_value = location[48:]
+        exp_location = 'http://service.com/index.php'
+        exp_location += '?authCAS=CAS&ticket=' + ticket_value
+        # there is only one ticket value in response location
+        assert len(ticket_value) == 32
+        assert location == exp_location
+
 
 class CASServerHelperTests(unittest.TestCase):
@@ -479,5 +501,5 @@
         assert check_login_ticket(db, 'LT-654321') is False
 
-    def test_set_session_cookie(self):
+    def test_set_session_cookie1(self):
         # make sure we can add session cookies to responses
         db = DB('sqlite:///')
@@ -493,5 +515,5 @@
         assert len(list(q)) == 1
 
-    def test_check_session_cookie(self):
+    def test_check_session_cookie2(self):
         db = DB('sqlite:///')
         tgc = create_tgc_value()
