@pytest.mark.network
def test_require_file_from_url():
 from fabtools.require import file as require_file
 try:
  require_file(url='http://www.google.com/robots.txt')
  assert is_file('robots.txt')
 finally:
  run('rm -f robots.txt')

@ pytest . mark . network def test_require_file_from_url ( ) : from fabtools . require import file as require_file try : require_file ( url = 'http://www.google.com/robots.txt' ) assert is_file ( 'robots.txt' ) finally : run ( 'rm -f robots.txt' )
require that a file exists .