<s> """<STR_LIT>""" <EOL> from __future__ import division <EOL> import os <EOL> from twisted . trial . unittest import TestCase <EOL> from twisted . python . dist3 import modulesToInstall <EOL> class ModulesToInstallTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_sanityCheck ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIn ( "<STR_LIT>" , modulesToInstall ) <EOL> self . assertIn ( "<STR_LIT>" , modulesToInstall ) <EOL> def test_exist ( self ) : <EOL> """<STR_LIT>""" <EOL> import twisted <EOL> root = os . path . dirname ( os . path . dirname ( twisted . __file__ ) ) <EOL> for module in modulesToInstall : <EOL> segments = module . split ( "<STR_LIT:.>" ) <EOL> segments [ - <NUM_LIT:1> ] += "<STR_LIT>" <EOL> path = os . path . join ( root , * segments ) <EOL> alternateSegments = module . split ( "<STR_LIT:.>" ) + [ "<STR_LIT>" ] <EOL> packagePath = os . path . join ( root , * alternateSegments ) <EOL> self . assertTrue ( os . path . exists ( path ) or <EOL> os . path . exists ( packagePath ) , <EOL> "<STR_LIT>" . format ( module ) ) </s>
