summaryrefslogtreecommitdiff
path: root/cherrypy/test/test_httpauth.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-02-04 13:11:20 -0500
committerJason R. Coombs <jaraco@jaraco.com>2018-02-04 13:44:14 -0500
commitc314adc4deb7cd43aa985ce2541e39588e4098cb (patch)
treedaedd192da82551b82846fa2ee052ba3422bc9ab /cherrypy/test/test_httpauth.py
parent513d4bfef99e7e599bc60c7da745d18439567797 (diff)
downloadcherrypy-git-14.0.0.tar.gz
Use bytes literals where appropriatev14.0.0
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': {