示例#1
0
def test_rm_virtualenv():
    cl_args = MockedArguments(name=PROJECT_NAME)
    mksite.make_virtualenv(cl_args)
    rmsite.rm_virtualenv(PROJECT_NAME)

    path = os.path.join(utils.env.virtualenv_root, PROJECT_NAME)
    assert_false(os.path.exists(path))  # The virtualenv should *not* exist
示例#2
0
def test_make_virtualenv():
    cl_args = MockedArguments(name=PROJECT_NAME)
    mksite.make_virtualenv(cl_args)

    virtualenv_path = utils.normalize(utils.env.virtualenv_root, PROJECT_NAME)
    ok_(os.path.exists(virtualenv_path))
    ok_(os.path.exists(
        utils.normalize(virtualenv_path, utils.env.project_container_name))
    )
示例#3
0
def test_make_virtualenv():
    cl_args = MockedArguments({'name': PROJECT_NAME})
    mksite.make_virtualenv(cl_args)

    virtualenv_path = utils.normalize(utils.env.virtualenv_root, PROJECT_NAME)
    assert_true(os.path.exists(virtualenv_path))
    assert_true(
        os.path.exists(
            utils.normalize(virtualenv_path,
                            utils.env.project_container_name)))