#NEWLINE# def test_bootstrap_pyc( self ) : #NEWLINE# #INDENT# '\n        ``create_virtualenv`` creates links to the pyc files for all the\n        modules required for the virtualenv bootstrap process.\n        ' #NEWLINE# target_path = FilePath ( self . mktemp ( ) ) #NEWLINE# create_virtualenv ( root = target_path ) #NEWLINE# py_files = [ ] #NEWLINE# for module_name in VIRTUALENV_REQUIRED_MODULES : #NEWLINE# #INDENT# py_base = target_path . descendant ( [ 'lib' , 'python2.7' , module_name ] ) #NEWLINE# py = py_base . siblingExtension ( '.py' ) #NEWLINE# pyc = py_base . siblingExtension ( '.pyc' ) #NEWLINE# if ( py . exists ( ) and ( False in ( py . islink ( ) , pyc . islink ( ) ) ) ) : #NEWLINE# #INDENT# 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' ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if py_files : #NEWLINE# #INDENT# self . fail ( 'Non-linked bootstrap pyc files in {}: \n{}' . format ( target_path , '\n' . join ( py_files ) ) )