Skip to content

Commit

Permalink
Add emoji to unicode user digest auth test
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jun 18, 2018
1 parent 508a4a9 commit 2b903bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cherrypy/test/test_auth_digest.py
Expand Up @@ -13,7 +13,7 @@


def _fetch_users():
return {'test': 'test', 'йюзер': 'їпароль'}
return {'test': 'test', 'йюзер': 'їпароль'}


get_ha1 = cherrypy.lib.auth_digest.get_ha1_dict_plain(_fetch_users())
Expand Down Expand Up @@ -120,10 +120,10 @@ def test_ascii_user(self):
assert self.body == b"Hello test, you've been authorized."

def test_unicode_user(self):
self._test_parametric_digest(username='йюзер', realm='localhost')
self._test_parametric_digest(username='йюзер', realm='localhost')
assert self.status == '200 OK'
assert self.body == ntob(
"Hello йюзер, you've been authorized.", 'utf-8',
"Hello йюзер, you've been authorized.", 'utf-8',
)

def test_wrong_scheme(self):
Expand Down

0 comments on commit 2b903bc

Please sign in to comment.