def test_require_virtualenv():
 from fabtools.require.python import virtualenv
 try:
  virtualenv('/tmp/venv')
  assert is_dir('/tmp/venv')
  assert is_file('/tmp/venv/bin/python')
 finally:
  run('rm -rf /tmp/venv')

def test_require_virtualenv ( ) : from fabtools . require . python import virtualenv try : virtualenv ( '/tmp/venv' ) assert is_dir ( '/tmp/venv' ) assert is_file ( '/tmp/venv/bin/python' ) finally : run ( 'rm -rf /tmp/venv' )
test python virtualenv creation .