mirror of
https://github.com/httpie/cli.git
synced 2025-08-16 07:18:28 +02:00
Fixed tests.
This commit is contained in:
@ -10,11 +10,12 @@ from fixtures import UNICODE
|
||||
class TestUnicode:
|
||||
|
||||
def test_unicode_headers(self):
|
||||
# httpbin doesn't interpret utf8 headers
|
||||
r = http(httpbin('/headers'), u'Test:%s' % UNICODE)
|
||||
assert HTTP_OK in r
|
||||
assert r.json['headers']['Test'] == UNICODE
|
||||
|
||||
def test_unicode_headers_verbose(self):
|
||||
# httpbin doesn't interpret utf8 headers
|
||||
r = http('--verbose', httpbin('/headers'), u'Test:%s' % UNICODE)
|
||||
assert HTTP_OK in r
|
||||
assert UNICODE in r
|
||||
|
Reference in New Issue
Block a user