diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2018-06-18 02:03:20 +0200 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2018-06-18 02:54:52 +0200 |
commit | 2b903bcf9ff76f4ac2587db8b6a8a0ad535b3897 (patch) | |
tree | 32cba58153b12ec57335c7e371a00abb82b1572a | |
parent | 508a4a96ae8f06fc619f1b31d220407b05932477 (diff) | |
download | cherrypy-git-2b903bcf9ff76f4ac2587db8b6a8a0ad535b3897.tar.gz |
Add emoji to unicode user digest auth test
-rw-r--r-- | cherrypy/test/test_auth_digest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cherrypy/test/test_auth_digest.py b/cherrypy/test/test_auth_digest.py index 66732c05..512e39a5 100644 --- a/cherrypy/test/test_auth_digest.py +++ b/cherrypy/test/test_auth_digest.py @@ -13,7 +13,7 @@ from cherrypy.test import helper def _fetch_users(): - return {'test': 'test', 'йюзер': 'їпароль'} + return {'test': 'test', '☃йюзер': 'їпароль'} get_ha1 = cherrypy.lib.auth_digest.get_ha1_dict_plain(_fetch_users()) @@ -120,10 +120,10 @@ class DigestAuthTest(helper.CPWebCase): 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): |