mirror of
https://github.com/httpie/cli.git
synced 2024-11-24 08:22:22 +02:00
Test case for Host
header removal (unimplemented feature)
This commit is contained in:
parent
0913e8b2ef
commit
b879d38b07
@ -85,6 +85,15 @@ def test_headers_unset(httpbin_both):
|
||||
assert 'Accept' not in r.json['headers'] # default Accept unset
|
||||
|
||||
|
||||
@pytest.mark.skip('unimplemented')
|
||||
def test_unset_host_header(httpbin_both):
|
||||
r = http('GET', httpbin_both + '/headers')
|
||||
assert 'Host' in r.json['headers'] # default Host present
|
||||
|
||||
r = http('GET', httpbin_both + '/headers', 'Host:')
|
||||
assert 'Host' not in r.json['headers'] # default Host unset
|
||||
|
||||
|
||||
def test_headers_empty_value(httpbin_both):
|
||||
r = http('GET', httpbin_both + '/headers')
|
||||
assert r.json['headers']['Accept'] # default Accept has value
|
||||
|
Loading…
Reference in New Issue
Block a user