mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 07:43:20 +01:00
Fixed tests.
This commit is contained in:
parent
43bc6d0c98
commit
1169a3eb23
@ -10,7 +10,7 @@ from tests.fixtures import UNICODE
|
||||
class TestUnicode:
|
||||
|
||||
def test_unicode_headers(self):
|
||||
r = http('--verbose', httpbin('/headers'), u'Test:%s' % UNICODE)
|
||||
r = http(httpbin('/headers'), u'Test:%s' % UNICODE)
|
||||
assert HTTP_OK in r
|
||||
assert r.json['headers']['Test'] == UNICODE
|
||||
|
||||
@ -42,9 +42,9 @@ class TestUnicode:
|
||||
assert UNICODE in r
|
||||
|
||||
def test_unicode_raw_json_item(self):
|
||||
r = http('--verbose',
|
||||
'--json', 'POST', httpbin('/post'),
|
||||
r = http('--json', 'POST', httpbin('/post'),
|
||||
u'test:={ "%s" : [ "%s" ] }' % (UNICODE, UNICODE))
|
||||
assert r.json['json'] == {'test': {UNICODE: [UNICODE]}}
|
||||
|
||||
def test_unicode_raw_json_item_verbose(self):
|
||||
r = http('--verbose',
|
||||
|
Loading…
Reference in New Issue
Block a user