diff --git a/tests/test_httpie.py b/tests/test_httpie.py index 37cc152c..5cef1158 100644 --- a/tests/test_httpie.py +++ b/tests/test_httpie.py @@ -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