old_contents: # Licensed under a 3-clause BSD style license - see LICENSE.rst
  from astropy.tests.helper import remote_data
  import requests
  
  from . import version
  
  
  @remote_data
  def test_net_connection():
      R = requests.post('http://httpbin.org/post',
                        headers={'User-Agent':
                                 'astropy:astroquery.{0}'
                                 .format(version.version)})
      R.raise_for_status()
  
new_contents: # Licensed under a 3-clause BSD style license - see LICENSE.rst
  from astropy.tests.helper import remote_data
  import requests
  
  from .. import version
  
  
  @remote_data
  def test_net_connection():
      R = requests.post('http://httpbin.org/post',
                        headers={'User-Agent':
                                 'astropy:astroquery.{0}'
                                 .format(version.version)})
      R.raise_for_status()
  
subject: fix bad import