Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str For NameStore Call AttributeLoad NameLoad attr keyword NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str TryFinally body Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr keyword NameLoad finalbody For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad NameLoad attr Str body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad Call AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Dict keyword Dict keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore ListLoad Str Str Str Str body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore ListLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad Str TryFinally body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str finalbody Delete SubscriptDel AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert UnaryOpNot AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str NameLoad keyword NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore Str Assert CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd NameLoad Str Assert CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assert UnaryOpNot AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assert UnaryOpNot AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str AugAssignAdd AttributeStore NameLoad attr Str Assert Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad decorator_list Assign NameStore ListLoad Str Assign NameStore Dict Assign NameStore ListLoad NameLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr ListLoad Dict Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list
N/A N/A 
Tests for twisted.python.modules, abstract access to imported or importable
objects.
 N/A sys N/A itertools N/A zipfile N/A compileall N/A twisted twisted.trial.unittest TestCase twisted.python modules twisted.python.filepath FilePath twisted.python.reflect namedAny twisted.python.test.modules_helpers TwistedModulesMixin twisted.python.test.test_zippath zipit TwistedModulesTestCase N/A TwistedModulesMixin TestCase N/A N/A 
    Base class for L{modules} test cases.
     findByIteration N/A N/A self modname where importPackages N/A modules False N/A N/A 
        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.
         N/A modinfo N/A N/A where walkModules importPackages importPackages N/A N/A N/A N/A modinfo name modname N/A N/A modinfo N/A N/A N/A self fail N/A Unable to find module %r through iteration. N/A modname N/A N/A BasicTests N/A TwistedModulesTestCase N/A test_namespacedPackages N/A N/A self N/A N/A N/A 
        Duplicate packages are not yielded when iterating over namespace
        packages.
         N/A N/A __import__ pkgutil N/A namespaceBoilerplate import pkgutil; __path__ = pkgutil.extend_path(__path__, __name__) N/A entry N/A N/A self pathEntryWithOnePackage N/A testPackagePath N/A N/A entry child test_package N/A N/A N/A N/A N/A testPackagePath child __init__.py setContent namespaceBoilerplate N/A nestedEntry N/A N/A testPackagePath child nested_package N/A N/A N/A nestedEntry makedirs N/A N/A N/A N/A N/A nestedEntry child __init__.py setContent namespaceBoilerplate N/A N/A N/A N/A N/A nestedEntry child module.py setContent N/A anotherEntry N/A N/A self pathEntryWithOnePackage N/A anotherPackagePath N/A N/A anotherEntry child test_package N/A N/A N/A N/A N/A anotherPackagePath child __init__.py setContent namespaceBoilerplate N/A anotherNestedEntry N/A N/A anotherPackagePath child nested_package N/A N/A N/A anotherNestedEntry makedirs N/A N/A N/A N/A N/A anotherNestedEntry child __init__.py setContent namespaceBoilerplate N/A N/A N/A N/A N/A anotherNestedEntry child module2.py setContent N/A N/A N/A self replaceSysPath N/A N/A entry path N/A anotherEntry path N/A module N/A N/A modules getModule test_package N/A N/A N/A walkedNames N/A N/A mod name N/A mod N/A N/A module walkModules importPackages True N/A N/A module N/A N/A N/A sys modules keys N/A N/A N/A N/A module startswith test_package N/A N/A N/A N/A sys modules N/A module N/A expected N/A test_package test_package.nested_package test_package.nested_package.module test_package.nested_package.module2 N/A N/A N/A self assertEqual walkedNames expected N/A test_unimportablePackageGetItem N/A N/A self N/A N/A N/A 
        If a package has been explicitly forbidden from importing by setting a
        C{None} key in sys.modules under its name,
        L{modules.PythonPath.__getitem__} should still be able to retrieve an
        unloaded L{modules.PythonModule} for that package.
         N/A shouldNotLoad N/A N/A path N/A N/A modules PythonPath sysPath N/A N/A N/A N/A self pathEntryWithOnePackage path moduleLoader N/A shouldNotLoad append importerCache N/A sysPathHooks N/A moduleDict N/A test_package None N/A N/A N/A self assertEqual shouldNotLoad N/A N/A N/A N/A self assertEqual N/A N/A N/A path N/A test_package isLoaded False N/A test_unimportablePackageWalkModules N/A N/A self N/A N/A N/A 
        If a package has been explicitly forbidden from importing by setting a
        C{None} key in sys.modules under its name, L{modules.walkModules} should
        still be able to retrieve an unloaded L{modules.PythonModule} for that
        package.
         N/A existentPath N/A N/A self pathEntryWithOnePackage N/A N/A N/A self replaceSysPath N/A N/A existentPath path N/A N/A N/A self replaceSysModules N/A test_package None N/A walked N/A list N/A N/A modules walkModules N/A N/A N/A self assertEqual N/A N/A m name N/A m walked N/A test_package N/A N/A N/A self assertEqual N/A N/A N/A walked N/A 0 isLoaded False N/A test_nonexistentPaths N/A N/A self N/A N/A N/A 
        Verify that L{modules.walkModules} ignores entries in sys.path which
        do not exist in the filesystem.
         N/A existentPath N/A N/A self pathEntryWithOnePackage N/A nonexistentPath N/A FilePath N/A N/A self mktemp N/A N/A N/A self failIf N/A N/A nonexistentPath exists N/A N/A N/A self replaceSysPath N/A N/A existentPath path N/A expected N/A N/A N/A modules getModule test_package N/A beforeModules N/A list N/A N/A modules walkModules N/A N/A N/A N/A sys path append N/A nonexistentPath path N/A afterModules N/A list N/A N/A modules walkModules N/A N/A N/A self assertEqual beforeModules expected N/A N/A N/A self assertEqual afterModules expected N/A test_nonDirectoryPaths N/A N/A self N/A N/A N/A 
        Verify that L{modules.walkModules} ignores entries in sys.path which
        refer to regular files in the filesystem.
         N/A existentPath N/A N/A self pathEntryWithOnePackage N/A nonDirectoryPath N/A FilePath N/A N/A self mktemp N/A N/A N/A self failIf N/A N/A nonDirectoryPath exists N/A N/A N/A nonDirectoryPath setContent zip file or whatever
 N/A N/A N/A self replaceSysPath N/A N/A existentPath path N/A beforeModules N/A list N/A N/A modules walkModules N/A N/A N/A N/A sys path append N/A nonDirectoryPath path N/A afterModules N/A list N/A N/A modules walkModules N/A N/A N/A self assertEqual beforeModules afterModules N/A test_twistedShowsUp N/A N/A self N/A N/A N/A 
        Scrounge around in the top-level module namespace and make sure that
        Twisted shows up, and that the module thusly obtained is the same as
        the module that we find when we look for it explicitly by name.
         N/A N/A N/A self assertEqual N/A N/A modules getModule twisted N/A N/A self findByIteration twisted N/A test_dottedNames N/A N/A self N/A N/A N/A 
        Verify that the walkModules APIs will give us back subpackages, not just
        subpackages.
         N/A N/A N/A self assertEqual N/A N/A modules getModule twisted.python N/A N/A self findByIteration twisted.python where N/A N/A modules getModule twisted N/A test_onlyTopModules N/A N/A self N/A N/A N/A 
        Verify that the iterModules API will only return top-level modules and
        packages, not submodules or subpackages.
         N/A module N/A N/A modules iterModules N/A N/A N/A N/A self failIf N/A . N/A module name N/A no nested modules should be returned from iterModules: %r N/A module filePath N/A test_loadPackagesAndModules N/A N/A self N/A N/A N/A 
        Verify that we can locate and load packages, modules, submodules, and
        subpackages.
         N/A n N/A os twisted twisted.python twisted.python.reflect N/A N/A m N/A namedAny n N/A N/A N/A self failUnlessIdentical N/A N/A N/A N/A modules getModule n load m N/A N/A N/A self failUnlessIdentical N/A N/A N/A N/A self findByIteration n load m N/A test_pathEntriesOnPath N/A N/A self N/A N/A N/A 
        Verify that path entries discovered via module loading are, in fact, on
        sys.path somewhere.
         N/A n N/A os twisted twisted.python twisted.python.reflect N/A N/A N/A N/A self failUnlessIn N/A N/A N/A N/A N/A modules getModule n pathEntry filePath path N/A sys path N/A test_alwaysPreferPy N/A N/A self N/A N/A N/A 
        Verify that .py files will always be preferred to .pyc files, regardless of
        directory listing order.
         N/A mypath N/A FilePath N/A N/A self mktemp N/A N/A N/A mypath createDirectory N/A pp N/A N/A modules PythonPath sysPath N/A N/A mypath path N/A originalSmartPath N/A pp _smartPath _evilSmartPath N/A N/A pathName N/A N/A N/A o N/A originalSmartPath pathName N/A originalChildren N/A o children evilChildren N/A N/A N/A N/A N/A x N/A originalChildren N/A N/A N/A x sort N/A N/A N/A x reverse N/A x N/A N/A N/A o children evilChildren N/A o N/A N/A N/A N/A N/A N/A mypath child abcd.py setContent N/A N/A N/A compileall compile_dir N/A mypath path quiet True N/A N/A N/A self assertEqual N/A len N/A N/A mypath children 2 N/A N/A pp _smartPath _evilSmartPath N/A N/A N/A self assertEqual N/A N/A pp N/A abcd filePath N/A N/A mypath child abcd.py N/A test_packageMissingPath N/A N/A self N/A N/A N/A 
        A package can delete its __path__ for some reasons,
        C{modules.PythonPath} should be able to deal with it.
         N/A mypath N/A FilePath N/A N/A self mktemp N/A N/A N/A mypath createDirectory N/A pp N/A N/A modules PythonPath sysPath N/A N/A mypath path N/A subpath N/A N/A mypath child abcd N/A N/A N/A subpath createDirectory N/A N/A N/A N/A N/A subpath child __init__.py setContent del __path__
 N/A N/A N/A N/A sys path append N/A mypath path N/A N/A __import__ abcd N/A N/A N/A l N/A list N/A N/A pp walkModules N/A N/A N/A self assertEqual N/A len l 1 N/A N/A N/A self assertEqual N/A N/A l N/A 0 name abcd N/A N/A N/A N/A sys modules N/A abcd N/A N/A N/A N/A sys path remove N/A mypath path N/A N/A PathModificationTest N/A TwistedModulesTestCase N/A N/A 
    These tests share setup/cleanup behavior of creating a dummy package and
    stuffing some code in it.
     N/A _serialnum N/A N/A N/A itertools count next setUp N/A N/A self N/A N/A N/A N/A self pathExtensionName N/A N/A self mktemp N/A N/A self pathExtension N/A FilePath N/A self pathExtensionName N/A N/A N/A N/A self pathExtension createDirectory N/A N/A self packageName N/A pyspacetests%d N/A N/A N/A self _serialnum N/A N/A self packagePath N/A N/A N/A self pathExtension child N/A self packageName N/A N/A N/A N/A self packagePath createDirectory N/A N/A N/A N/A N/A N/A self packagePath child __init__.py setContent N/A N/A N/A N/A N/A N/A self packagePath child a.py setContent N/A N/A N/A N/A N/A N/A self packagePath child b.py setContent N/A N/A N/A N/A N/A N/A self packagePath child c__init__.py setContent N/A N/A self pathSetUp False N/A _setupSysPath N/A N/A self N/A N/A N/A N/A N/A self pathSetUp N/A N/A self pathSetUp True N/A N/A N/A N/A sys path append N/A self pathExtensionName N/A _underUnderPathTest N/A N/A self doImport N/A True N/A N/A moddir2 N/A N/A self mktemp N/A fpmd N/A FilePath moddir2 N/A N/A N/A fpmd createDirectory N/A N/A N/A N/A N/A fpmd child foozle.py setContent x = 123
 N/A N/A N/A N/A N/A N/A self packagePath child __init__.py setContent N/A __path__.append(%r)
 N/A moddir2 N/A N/A N/A self _setupSysPath N/A modinfo N/A N/A modules getModule N/A self packageName N/A N/A N/A self assertEqual N/A N/A self findByIteration N/A N/A self packageName .foozle modinfo importPackages doImport N/A modinfo N/A foozle N/A N/A N/A self assertEqual N/A N/A N/A N/A modinfo N/A foozle load x 123 N/A test_underUnderPathAlreadyImported N/A N/A self N/A N/A N/A 
        Verify that iterModules will honor the __path__ of already-loaded packages.
         N/A N/A N/A self _underUnderPathTest N/A test_underUnderPathNotAlreadyImported N/A N/A self N/A N/A N/A 
        Verify that iterModules will honor the __path__ of already-loaded packages.
         N/A N/A N/A self _underUnderPathTest False N/A N/A N/A test_underUnderPathNotAlreadyImported todo This may be impossible but it sure would be nice. _listModules N/A N/A self N/A N/A N/A pkginfo N/A N/A modules getModule N/A self packageName N/A nfni N/A N/A N/A N/A N/A modinfo name split . N/A -1 N/A modinfo N/A N/A pkginfo iterModules N/A N/A N/A nfni sort N/A N/A N/A self assertEqual nfni N/A a b c__init__ N/A test_listingModules N/A N/A self N/A N/A N/A 
        Make sure the module list comes back as we expect from iterModules on a
        package, whether zipped or not.
         N/A N/A N/A self _setupSysPath N/A N/A N/A self _listModules N/A test_listingModulesAlreadyImported N/A N/A self N/A N/A N/A 
        Make sure the module list comes back as we expect from iterModules on a
        package, whether zipped or not, even if the package has already been
        imported.
         N/A N/A N/A self _setupSysPath N/A N/A namedAny N/A self packageName N/A N/A N/A self _listModules N/A tearDown N/A N/A self N/A N/A N/A N/A self pathSetUp N/A N/A HORK path cleanup failed: don't be surprised if other tests break N/A N/A N/A N/A N/A sys path pop N/A self pathExtensionName N/A HORK , 1 N/A N/A N/A self pathExtensionName N/A sys path N/A HORK , 2 N/A N/A RebindingTest N/A PathModificationTest N/A N/A 
    These tests verify that the default path interrogation API works properly
    even when sys.path has been rebound to a different object.
     _setupSysPath N/A N/A self N/A N/A N/A N/A N/A self pathSetUp N/A N/A self pathSetUp True N/A N/A self savedSysPath N/A sys path N/A N/A sys path N/A N/A sys path N/A N/A N/A N/A N/A sys path append N/A self pathExtensionName N/A tearDown N/A N/A self N/A N/A N/A 
        Clean up sys.path by re-binding our original object.
         N/A N/A self pathSetUp N/A N/A N/A sys path N/A self savedSysPath N/A N/A ZipPathModificationTest N/A PathModificationTest N/A _setupSysPath N/A N/A self N/A N/A N/A N/A N/A self pathSetUp N/A N/A zipit N/A self pathExtensionName N/A N/A self pathExtensionName .zip N/A N/A self pathExtensionName .zip N/A N/A N/A zipfile is_zipfile N/A self pathExtensionName N/A N/A N/A PathModificationTest _setupSysPath self N/A N/A PythonPathTestCase N/A TestCase N/A N/A 
    Tests for the class which provides the implementation for all of the
    public API of L{twisted.python.modules}, L{PythonPath}.
     test_unhandledImporter N/A N/A self N/A N/A N/A 
        Make sure that the behavior when encountering an unknown importer
        type is not catastrophic failure.
         SecretImporter N/A object N/A N/A N/A hook N/A N/A name N/A N/A N/A N/A SecretImporter N/A N/A syspath N/A example/path N/A sysmodules N/A N/A syshooks N/A hook N/A syscache N/A sysloader N/A N/A name N/A N/A N/A None N/A N/A space N/A N/A modules PythonPath syspath sysmodules syshooks syscache sysloader N/A entries N/A list N/A N/A space iterEntries N/A N/A N/A self assertEqual N/A len entries 1 N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A N/A entries N/A 0 N/A module N/A test_inconsistentImporterCache N/A N/A self N/A N/A N/A 
        If the path a module loaded with L{PythonPath.__getitem__} is not
        present in the path importer cache, a warning is emitted, but the
        L{PythonModule} is returned as usual.
         N/A space N/A N/A modules PythonPath N/A N/A sys modules N/A N/A N/A thisModule N/A space N/A __name__ N/A warnings N/A N/A self flushWarnings N/A N/A self test_inconsistentImporterCache N/A N/A N/A self assertEqual N/A N/A warnings N/A 0 N/A category UserWarning N/A N/A N/A self assertEqual N/A N/A warnings N/A 0 N/A message N/A N/A N/A N/A N/A N/A N/A N/A FilePath N/A twisted __file__ parent dirname  (for module  __name__ ) not in path importer cache (PEP 302 violation - check your local configuration). N/A N/A N/A self assertEqual N/A len warnings 1 N/A N/A N/A self assertEqual N/A thisModule name __name__ N/A test_containsModule N/A N/A self N/A N/A N/A 
        L{PythonPath} implements the C{in} operator so that when it is the
        right-hand argument and the name of a module which exists on that
        L{PythonPath} is the left-hand argument, the result is C{True}.
         N/A thePath N/A N/A modules PythonPath N/A N/A N/A self assertIn os thePath N/A test_doesntContainModule N/A N/A self N/A N/A N/A 
        L{PythonPath} implements the C{in} operator so that when it is the
        right-hand argument and the name of a module which does not exist on
        that L{PythonPath} is the left-hand argument, the result is C{False}.
         N/A thePath N/A N/A modules PythonPath N/A N/A N/A self assertNotIn bogusModule thePath N/A N/A