def test_install_pkg(): with Workspace() as workspace: manage.create_virtualenv(os.path.join(workspace.workspace)) manage.install_pkg(workspace.workspace, 'simplejson') assert 'simplejson' in manage.run( [(os.path.join(workspace.workspace, 'bin', 'pip')), 'freeze'], capture_stdout=True)
def test_create_virtualenv(): with Workspace() as workspace: manage.create_virtualenv(os.path.join(workspace.workspace, 'foo')) assert os.path.isfile(os.path.join(workspace.workspace, 'foo', 'bin', 'python'))
def test_create_virtualenv(): with Workspace() as workspace: manage.create_virtualenv(os.path.join(workspace.workspace, 'foo')) assert os.path.isfile( os.path.join(workspace.workspace, 'foo', 'bin', 'python'))