summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorcce <devnull@localhost>2005-12-31 08:07:34 +0000
committercce <devnull@localhost>2005-12-31 08:07:34 +0000
commitae658aa384eeb753866fe1bc88799be71dac56b4 (patch)
tree5d428c6474b02a56c795532157c7319eb8d414a1 /tests
parent91c8ef70a2b92b44bece7bcf1dd52af0fee271fd (diff)
downloadpaste-ae658aa384eeb753866fe1bc88799be71dac56b4.tar.gz
Diffstat (limited to 'tests')
-rw-r--r--tests/test_auth/test_auth_digest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_auth/test_auth_digest.py b/tests/test_auth/test_auth_digest.py
index 5db7291..c97b7d2 100644
--- a/tests/test_auth/test_auth_digest.py
+++ b/tests/test_auth/test_auth_digest.py
@@ -2,7 +2,7 @@
# This module is part of the Python Paste Project and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
-from paste.auth import digest
+from paste.auth.digest import *
from paste.wsgilib import raw_interactive
from paste.response import header_value
from paste.httpexceptions import *
@@ -21,10 +21,10 @@ def backwords(realm,username):
password = list(username)
password.reverse()
password = "".join(password)
- return digest.digest_password(username,realm,password)
+ return digest_password(username,realm,password)
-application = digest.middleware(application,realm,backwords)
-application = HTTPExceptionHandler(application)
+application = AuthDigestHandler(application,realm,backwords)
+application = HTTPExceptionHandler(application)
def check(username, password, path="/"):
""" perform two-stage authentication to verify login """
@@ -32,7 +32,7 @@ def check(username, password, path="/"):
raw_interactive(application,path, accept='text/html')
assert status.startswith("401")
challenge = header_value(headers,'WWW-Authenticate')
- response = digest.response(challenge, realm, path, username, password)
+ response = digest_response(challenge, realm, path, username, password)
assert "Digest" in response
(status,headers,content,errors) = \
raw_interactive(application,path,