summaryrefslogtreecommitdiff
path: root/cherrypy/test/test_httpauth.py
diff options
context:
space:
mode:
Diffstat (limited to 'cherrypy/test/test_httpauth.py')
-rw-r--r--cherrypy/test/test_httpauth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/test/test_httpauth.py b/cherrypy/test/test_httpauth.py
index 3a5cff27..eed3666c 100644
--- a/cherrypy/test/test_httpauth.py
+++ b/cherrypy/test/test_httpauth.py
@@ -45,7 +45,7 @@ class HTTPAuthTest(helper.CPWebCase):
return sha1(ntob(password)).hexdigest()
def fetch_password(username):
- return sha1(ntob('test')).hexdigest()
+ return sha1(b'test').hexdigest()
conf = {
'/digest': {
@@ -57,7 +57,7 @@ class HTTPAuthTest(helper.CPWebCase):
'tools.basic_auth.on': True,
'tools.basic_auth.realm': 'localhost',
'tools.basic_auth.users': {
- 'test': md5(ntob('test')).hexdigest()
+ 'test': md5(b'test').hexdigest()
}
},
'/basic2': {