diff options
Diffstat (limited to 'cherrypy/test/test_httpauth.py')
| -rw-r--r-- | cherrypy/test/test_httpauth.py | 4 |
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': { |
