summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests/t_spnego.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/t_spnego.py b/tests/t_spnego.py
index 83a9586..d6f77ca 100755
--- a/tests/t_spnego.py
+++ b/tests/t_spnego.py
@@ -12,3 +12,7 @@ if __name__ == '__main__':
r = sess.get(url, auth=HTTPKerberosAuth())
if r.status_code != 200:
raise ValueError('Spnego failed')
+
+ c = r.cookies
+ if not c.get("gssapi_session").startswith("MagBearerToken="):
+ raise ValueError('gssapi_session not set')