Current Path : /usr/lib/python2.7/dist-packages/twisted/python/test/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/python/test/modules_helpers.pyc |
ó î6Nc @ s\ d Z d d l Z d d l m Z d d l m Z d d l m Z d e f d „ ƒ YZ d S( sƒ Facilities for helping test code which interacts with L{twisted.python.modules}, or uses Python's own module system to load code. iÿÿÿÿN( t TestCase( t modules( t FilePatht TwistedModulesTestCasec B s5 e Z e e d „ Z d „ Z d „ Z d d „ Z RS( c C sH x- | j d | ƒ D] } | j | k r | Sq W| j d | f ƒ d S( sï You don't ever actually want to do this, so it's not in the public API, but sometimes we want to compare the result of an iterative call with a lookup call and make sure they're the same for test purposes. t importPackagess+ Unable to find module %r through iteration.N( t walkModulest namet fail( t selft modnamet whereR t modinfo( ( sG /usr/lib/python2.7/dist-packages/twisted/python/test/modules_helpers.pyt findByIteration s c s4 t j ‰ ‡ f d † } | j | ƒ | t j (d S( sW Replace sys.path, for the duration of the test, with the given value. c s ˆ t j (d S( N( t syst path( ( t originalSysPath( sG /usr/lib/python2.7/dist-packages/twisted/python/test/modules_helpers.pyt cleanUpSysPath"