old_contents: """Miscellaneous regression tests"""
  import pytest
  
  from utils import http, HTTP_OK
  from httpie.compat import is_windows
  
  
  def test_Host_header_overwrite(httpbin):
      """
      https://github.com/jakubroztocil/httpie/issues/235
  
      """
      host = 'httpbin.org'
      url = httpbin.url + '/get'
      r = http('--print=hH', url, 'host:{0}'.format(host))
      assert HTTP_OK in r
      assert r.lower().count('host:') == 1
      assert 'host: {0}'.format(host) in r
  
  
  @pytest.mark.skipif(is_windows, reason='Unix-only')
  def test_output_devnull(httpbin):
      """
      https://github.com/jakubroztocil/httpie/issues/252
  
      """
      http('--output=/dev/null', httpbin + '/get')
  
new_contents: """Miscellaneous regression tests"""
  import pytest
  
  from httpie.compat import is_windows
  from utils import HTTP_OK, MockEnvironment, http
  
  
  def test_Host_header_overwrite(httpbin):
      """
      https://github.com/jakubroztocil/httpie/issues/235
  
      """
      host = 'httpbin.org'
      url = httpbin.url + '/get'
      r = http('--print=hH', url, 'host:{0}'.format(host))
      assert HTTP_OK in r
      assert r.lower().count('host:') == 1
      assert 'host: {0}'.format(host) in r
  
  
  @pytest.mark.skipif(is_windows, reason='Unix-only')
  def test_output_devnull(httpbin):
      """
      https://github.com/jakubroztocil/httpie/issues/252
  
      """
      http('--output=/dev/null', httpbin + '/get')
  
  
  @pytest.mark.skip(reason='TODO: fix #1006')
  def test_verbose_redirected_stdout_separator(httpbin):
      """
  
      <https://github.com/httpie/httpie/issues/1006>
      """
      r = http(
          '-v',
          httpbin.url + '/post',
          'a=b',
          env=MockEnvironment(stdout_isatty=False),
      )
      assert '}HTTP/' not in r
  
subject: Add a test to reproduce #1006