Commit 9dc1095a authored by ale's avatar ale
Browse files

remove extra base64 encodings from mod_sso integration test

parent 45fd3834
import base64
import httplib
import os
import subprocess
......@@ -147,14 +146,13 @@ class HttpdIntegrationTest(unittest.TestCase):
# test the /sso_login endpoint
conn = httplib.HTTPConnection("", 33000)
tkt = self._ticket()
tkt_enc = base64.b64encode(tkt)
conn.request("GET", "/sso_login?%s" % urllib.urlencode(
{"t": tkt_enc, "d": ""}))
{"t": tkt, "d": ""}))
resp = conn.getresponse()
self.assertEquals(302, resp.status)
set_cookie = resp.getheader("Set-Cookie")
self.assertTrue(tkt_enc in set_cookie)
self.assertTrue(tkt in set_cookie)
# test the /sso_logout endpoint
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment