'``create_virtualenv`` creates links to the pyc files for all the
modules required for the virtualenv bootstrap process.'

def test_bootstrap_pyc(self):

    target_path = FilePath(self.mktemp())
    create_virtualenv(root=target_path)
    py_files = []
    for module_name in VIRTUALENV_REQUIRED_MODULES:
        py_base = target_path.descendant(['lib', 'python2.7', module_name])
        py = py_base.siblingExtension('.py')
        pyc = py_base.siblingExtension('.pyc')
        if (py.exists() and (False in (py.islink(), pyc.islink()))):
            py_files.append('PY:    {}    >    {}\nPYC:    {}    >    {}\n'.format('/'.join(py.segmentsFrom(target_path)), py.realpath().path, '/'.join(pyc.segmentsFrom(target_path)), ((pyc.islink() and pyc.realpath().path) or 'NOT    A    SYMLINK')))
    if py_files:
        self.fail('Non-linked    bootstrap    pyc    files    in    {}:    \n{}'.format(target_path, '\n'.join(py_files)))
