summaryrefslogtreecommitdiff
path: root/tests/test_auth
diff options
context:
space:
mode:
authorcce <devnull@localhost>2006-02-24 06:26:16 +0000
committercce <devnull@localhost>2006-02-24 06:26:16 +0000
commit254a4aefe341319658c9391bdecd5a90277ecdd9 (patch)
tree808fd2ecb1587e55e21a5eaf7f59de483ba3d2e4 /tests/test_auth
parent3ece86d36d841c3d5023f7bab029c0b2b235e7e7 (diff)
downloadpaste-254a4aefe341319658c9391bdecd5a90277ecdd9.tar.gz
Diffstat (limited to 'tests/test_auth')
-rw-r--r--tests/test_auth/test_auth_digest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_auth/test_auth_digest.py b/tests/test_auth/test_auth_digest.py
index 62c3b24..4721db3 100644
--- a/tests/test_auth/test_auth_digest.py
+++ b/tests/test_auth/test_auth_digest.py
@@ -17,12 +17,12 @@ def application(environ, start_response):
realm = "tag:clarkevans.com,2005:testing"
-def backwords(realm,username):
+def backwords(environ, realm, username):
""" dummy password hash, where user password is just reverse """
password = list(username)
password.reverse()
password = "".join(password)
- return digest_password(username,realm,password)
+ return digest_password(realm, username, password)
application = AuthDigestHandler(application,realm,backwords)
application = HTTPExceptionHandler(application)