Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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'))
Ejemplo n.º 4
0
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'))