import os
from ..virtualenv import ext_virtualenv

def test_basic(tmpdir):
    tmpdir = str(tmpdir)

    abs_source = os.path.join(tmpdir, 'requirements.txt')
    with open(abs_source, 'w') as vfile:
        vfile.write('bottle\n')
        vfile.write('pytest\n')

    dest = os.path.join(tmpdir, 'env~virtualenv')
    finalfile = ext_virtualenv(abs_source, dest)

    assert os.path.exists(finalfile)
    assert os.path.exists(os.path.join(finalfile, 'bin', 'activate'))
    assert os.path.exists(os.path.join(finalfile, 'bin', 'activate'))

    lib_dir = os.path.join(finalfile, 'lib', 'python2.7',
                'site-packages')
    assert os.path.exists(os.path.join(lib_dir, 'bottle.py'))
    assert os.path.exists(os.path.join(lib_dir, 'pytest.py'))

import os
from ..virtualenv import ext_virtualenv

def integration(tmpdir):
    tmpdir = str(tmpdir)

    abs_source = os.path.join(tmpdir, 'requirements.txt')
    with open(abs_source, 'w') as vfile:
        vfile.write('bottle\n')
        vfile.write('pytest\n')

    dest = os.path.join(tmpdir, 'env~virtualenv')
    finalfile = ext_virtualenv(abs_source, dest)

    assert os.path.exists(finalfile)
    assert os.path.exists(os.path.join(finalfile, 'bin', 'activate'))
    assert os.path.exists(os.path.join(finalfile, 'bin', 'activate'))

    lib_dir = os.path.join(finalfile, 'lib', 'python2.7',
                'site-packages')
    assert os.path.exists(os.path.join(lib_dir, 'bottle.py'))
    assert os.path.exists(os.path.join(lib_dir, 'pytest.py'))

Change the virtualenv test to an integration test
Change the virtualenv test to an integration test

So that we're not downloading them constantly
