summaryrefslogtreecommitdiff
path: root/ticket.py
diff options
context:
space:
mode:
Diffstat (limited to 'ticket.py')
-rw-r--r--ticket.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ticket.py b/ticket.py
index 5b9ac2e..c8875d1 100644
--- a/ticket.py
+++ b/ticket.py
@@ -18,8 +18,9 @@ def tgt_verify(site, user, ts, sig, maxage = None):
return status
if __name__ == '__main__':
+ import urllib
sig = tgt_create('site', 'test')
- print sig
+ print urllib.urlencode(sig)
assert not tgt_verify(maxage = -9999, **sig)
assert tgt_verify(maxage = 9999, **sig)