fixed usage unicode string

This commit is contained in:
Dmitry Klimenko
2016-11-17 23:13:03 +03:00
committed by GitHub
parent 37bde4b638
commit bf3e960e15
+1 -1
View File
@@ -463,7 +463,7 @@ class TestRequests:
@pytest.mark.parametrize(
'username, password', (
('user', 'pass'),
('имя'.encode('utf-8'), 'пароль'.encode('utf-8')),
(u'имя'.encode('utf-8'), u'пароль'.encode('utf-8')),
))
def test_BASICAUTH_TUPLE_HTTP_200_OK_GET(self, httpbin, username, password):
auth = (username, password)