diff options
Diffstat (limited to 'ticket.py')
-rw-r--r-- | ticket.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |