def test_require_python_package(venv):
 from fabtools import require
 import fabtools
 with fabtools.python.virtualenv(venv):
  require.python.package('fabric')
 assert is_file(posixpath.join(venv, 'bin/fab'))

def test_require_python_package ( venv ) : from fabtools import require import fabtools with fabtools . python . virtualenv ( venv ) : require . python . package ( 'fabric' ) assert is_file ( posixpath . join ( venv , 'bin/fab' ) )
test python package installation .