summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wsgitools/digest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wsgitools/digest.py b/wsgitools/digest.py
index 86de17e..6ee0b6d 100644
--- a/wsgitools/digest.py
+++ b/wsgitools/digest.py
@@ -360,6 +360,9 @@ class MemoryNonceStore(NonceStoreBase):
True
>>> s.checknonce(n)
False
+ >>> n = s.newnonce()
+ >>> s.checknonce(n.rsplit(':', 1)[0] + "bad hash")
+ False
"""
def __init__(self, maxage=300, maxuses=5):
"""
@@ -500,6 +503,9 @@ class DBAPI2NonceStore(NonceStoreBase):
True
>>> s.checknonce(n)
False
+ >>> n = s.newnonce()
+ >>> s.checknonce(n.rsplit(':', 1)[0] + "bad hash")
+ False
"""
def __init__(self, dbhandle, maxage=300, maxuses=5, table="nonces"):
"""