def test_require_file():
 from fabtools.require import file as require_file
 try:
  require_file('foo')
  assert is_file('foo')
  assert (run('cat foo') == '')
 finally:
  run('rm -f foo')

def test_require_file ( ) : from fabtools . require import file as require_file try : require_file ( 'foo' ) assert is_file ( 'foo' ) assert ( run ( 'cat foo' ) == '' ) finally : run ( 'rm -f foo' )
require that a file exists .