Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str ListLoad Str keyword Lambda arguments args NameParam defaults NameLoad Assign NameStore Call NameLoad Str ListLoad Str keyword Lambda arguments args NameParam defaults NameLoad Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str ListLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str ListLoad Str keyword ListLoad TupleLoad Str Num Assign NameStore Call NameLoad keyword ListLoad NameLoad Assign NameStore Call SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad Str Num TupleLoad Str Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call 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 Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num 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 Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults kwarg body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListComp AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad keyword AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str With Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore ListLoad Str Str Str body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore ListLoad Str Str Str body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Dict Str Lambda arguments args defaults Str Assign NameStore Call NameLoad Dict Str Lambda arguments args defaults Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list
N/A N/A 
Tests for parts of our release automation system.
 N/A os N/A sys setuptools.dist Distribution twisted.trial.unittest TestCase twisted.python dist twisted.python.dist get_setup_args ConditionalExtension build_scripts_twisted _EXTRAS_REQUIRE twisted.python.filepath FilePath SetupTests N/A TestCase N/A N/A 
    Tests for L{get_setup_args}.
     test_conditionalExtensions N/A N/A self N/A N/A N/A 
        Passing C{conditionalExtensions} as a list of L{ConditionalExtension}
        objects to get_setup_args inserts a custom build_ext into the result
        which knows how to check whether they should be built.
         N/A good_ext N/A ConditionalExtension whatever N/A whatever.c condition N/A N/A N/A b N/A True N/A bad_ext N/A ConditionalExtension whatever N/A whatever.c condition N/A N/A N/A b N/A False N/A args N/A get_setup_args conditionalExtensions N/A good_ext bad_ext N/A N/A N/A self assertEqual N/A args N/A ext_modules N/A good_ext bad_ext N/A cmdclass N/A args N/A cmdclass N/A build_ext N/A cmdclass N/A build_ext N/A builder N/A build_ext N/A Distribution N/A N/A N/A builder prepare_extensions N/A N/A N/A self assertEqual N/A builder extensions N/A good_ext N/A test_win32Definition N/A N/A self N/A N/A N/A 
        When building on Windows NT, the WIN32 macro will be defined as 1.
         N/A ext N/A ConditionalExtension whatever N/A whatever.c define_macros N/A N/A whatever 2 N/A args N/A get_setup_args conditionalExtensions N/A ext N/A builder N/A N/A N/A args N/A cmdclass N/A build_ext N/A Distribution N/A N/A N/A self patch os name nt N/A N/A N/A builder prepare_extensions N/A N/A N/A self assertEqual N/A ext define_macros N/A N/A whatever 2 N/A WIN32 1 N/A N/A OptionalDependenciesTests N/A TestCase N/A N/A 
    Tests for L{_EXTRAS_REQUIRE}
     test_distributeTakesExtrasRequire N/A N/A self N/A N/A N/A 
        Setuptools' Distribution object parses and stores its C{extras_require}
        argument as an attribute.
         N/A extras N/A dict im_an_extra_dependency thing N/A attrs N/A dict extras_require extras N/A distribution N/A Distribution attrs N/A N/A N/A self assertEqual extras N/A distribution extras_require N/A test_extrasRequireDictContainsKeys N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE} contains options for all documented extras: C{dev},
        C{tls}, C{conch}, C{soap}, C{serial}, C{all_non_platform},
        C{osx_platform}, and C{windows_platform}.
         N/A N/A N/A self assertIn dev _EXTRAS_REQUIRE N/A N/A N/A self assertIn tls _EXTRAS_REQUIRE N/A N/A N/A self assertIn conch _EXTRAS_REQUIRE N/A N/A N/A self assertIn soap _EXTRAS_REQUIRE N/A N/A N/A self assertIn serial _EXTRAS_REQUIRE N/A N/A N/A self assertIn all_non_platform _EXTRAS_REQUIRE N/A N/A N/A self assertIn osx_platform _EXTRAS_REQUIRE N/A N/A N/A self assertIn windows_platform _EXTRAS_REQUIRE N/A test_extrasRequiresDevDeps N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE}'s C{dev} extra contains setuptools requirements for
        the tools required for Twisted development.
         N/A deps N/A _EXTRAS_REQUIRE N/A dev N/A N/A N/A self assertIn twistedchecker >= 0.4.0 deps N/A N/A N/A self assertIn pyflakes >= 1.0.0 deps N/A N/A N/A self assertIn twisted-dev-tools >= 0.0.2 deps N/A N/A N/A self assertIn python-subunit deps N/A N/A N/A self assertIn sphinx >= 1.3.1 deps N/A N/A N/A self assertIn pydoctor >= 15.0.0 deps N/A test_extrasRequiresTlsDeps N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE}'s C{tls} extra contains setuptools requirements for
        the packages required to make Twisted's transport layer security fully
        work for both clients and servers.
         N/A deps N/A _EXTRAS_REQUIRE N/A tls N/A N/A N/A self assertIn pyopenssl >= 0.13 deps N/A N/A N/A self assertIn service_identity deps N/A N/A N/A self assertIn idna >= 0.6 deps N/A test_extrasRequiresConchDeps N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE}'s C{conch} extra contains setuptools requirements
        for the packages required to make Twisted Conch's secure shell server
        work.
         N/A deps N/A _EXTRAS_REQUIRE N/A conch N/A N/A N/A self assertIn gmpy deps N/A N/A N/A self assertIn pyasn1 deps N/A N/A N/A self assertIn cryptography >= 0.9.1 deps N/A N/A N/A self assertIn appdirs >= 1.4.0 deps N/A test_extrasRequiresSoapDeps N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE}' C{soap} extra contains setuptools requirements for
        the packages required to make the C{twisted.web.soap} module function.
         N/A N/A N/A self assertIn soappy N/A _EXTRAS_REQUIRE N/A soap N/A test_extrasRequiresSerialDeps N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE}'s C{serial} extra contains setuptools requirements
        for the packages required to make Twisted's serial support work.
         N/A N/A N/A self assertIn pyserial N/A _EXTRAS_REQUIRE N/A serial N/A test_extrasRequiresAllNonPlatformDeps N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE}'s C{all_non_platform} extra contains setuptools
        requirements for all of Twisted's optional dependencies which work on
        all supported operating systems.
         N/A deps N/A _EXTRAS_REQUIRE N/A all_non_platform N/A N/A N/A self assertIn pyopenssl >= 0.13 deps N/A N/A N/A self assertIn service_identity deps N/A N/A N/A self assertIn idna >= 0.6 deps N/A N/A N/A self assertIn gmpy deps N/A N/A N/A self assertIn pyasn1 deps N/A N/A N/A self assertIn cryptography >= 0.9.1 deps N/A N/A N/A self assertIn soappy deps N/A N/A N/A self assertIn pyserial deps N/A N/A N/A self assertIn appdirs >= 1.4.0 deps N/A test_extrasRequiresOsxPlatformDeps N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE}'s C{osx_platform} extra contains setuptools
        requirements for all of Twisted's optional dependencies usable on the
        Mac OS X platform.
         N/A deps N/A _EXTRAS_REQUIRE N/A osx_platform N/A N/A N/A self assertIn pyopenssl >= 0.13 deps N/A N/A N/A self assertIn service_identity deps N/A N/A N/A self assertIn idna >= 0.6 deps N/A N/A N/A self assertIn gmpy deps N/A N/A N/A self assertIn pyasn1 deps N/A N/A N/A self assertIn cryptography >= 0.9.1 deps N/A N/A N/A self assertIn soappy deps N/A N/A N/A self assertIn pyserial deps N/A N/A N/A self assertIn pyobjc deps N/A test_extrasRequiresWindowsPlatformDeps N/A N/A self N/A N/A N/A 
        L{_EXTRAS_REQUIRE}'s C{windows_platform} extra contains setuptools
        requirements for all of Twisted's optional dependencies usable on the
        Microsoft Windows platform.
         N/A deps N/A _EXTRAS_REQUIRE N/A windows_platform N/A N/A N/A self assertIn pyopenssl >= 0.13 deps N/A N/A N/A self assertIn service_identity deps N/A N/A N/A self assertIn idna >= 0.6 deps N/A N/A N/A self assertIn gmpy deps N/A N/A N/A self assertIn pyasn1 deps N/A N/A N/A self assertIn cryptography >= 0.9.1 deps N/A N/A N/A self assertIn soappy deps N/A N/A N/A self assertIn pyserial deps N/A N/A N/A self assertIn pypiwin32 deps N/A N/A GetVersionTests N/A TestCase N/A N/A 
    Tests for L{dist.getVersion}.
     setUp N/A N/A self N/A N/A N/A N/A self dirname N/A N/A self mktemp N/A N/A N/A os mkdir N/A self dirname N/A test_getVersionCore N/A N/A self N/A N/A N/A 
        Test that getting the version of core reads from the
        [base]/_version.py file.
         N/A f N/A open N/A N/A N/A os path join N/A self dirname _version.py w N/A N/A N/A f write 
from twisted.python import versions
version = versions.Version("twisted", 0, 1, 2)
 N/A N/A N/A f close N/A N/A N/A self assertEqual N/A N/A dist getVersion base N/A self dirname 0.1.2 N/A N/A GetScriptsTests N/A TestCase N/A N/A 
    Tests for L{dist.getScripts} which returns the scripts which should be
    included in the distribution of a project.
     test_excludedPreamble N/A N/A self N/A N/A N/A 
        L{dist.getScripts} includes neither C{"_preamble.py"} nor
        C{"_preamble.pyc"}.
         N/A basedir N/A FilePath N/A N/A self mktemp N/A bin N/A N/A basedir child bin N/A N/A N/A bin makedirs N/A N/A N/A N/A N/A bin child _preamble.py setContent some preamble code
 N/A N/A N/A N/A N/A bin child _preamble.pyc setContent some preamble byte code
 N/A N/A N/A N/A N/A bin child program setContent good program code
 N/A scripts N/A N/A dist getScripts basedir N/A basedir path N/A N/A N/A self assertEqual scripts N/A N/A N/A N/A bin child program path N/A test_scriptsInRelease N/A N/A self N/A N/A N/A 
        getScripts should return the scripts associated with a project
        in the context of a released subproject tarball.
         N/A basedir N/A N/A self mktemp N/A N/A N/A os mkdir basedir N/A N/A N/A os mkdir N/A N/A N/A os path join basedir bin N/A f N/A open N/A N/A N/A os path join basedir bin exy w N/A N/A N/A f write yay N/A N/A N/A f close N/A scripts N/A N/A dist getScripts basedir basedir N/A N/A N/A self assertEqual N/A len scripts 1 N/A N/A N/A self assertEqual N/A N/A N/A os path basename N/A scripts N/A 0 exy N/A test_getScriptsTopLevel N/A N/A self N/A N/A N/A 
        getScripts returns scripts that are (only) in the top level bin
        directory.
         N/A basedir N/A FilePath N/A N/A self mktemp N/A N/A N/A basedir createDirectory N/A bindir N/A N/A basedir child bin N/A N/A N/A bindir createDirectory N/A included N/A N/A bindir child included N/A N/A N/A included setContent yay included N/A subdir N/A N/A bindir child subdir N/A N/A N/A subdir createDirectory N/A N/A N/A N/A N/A subdir child not-included setContent not included N/A scripts N/A N/A dist getScripts basedir N/A basedir path N/A N/A N/A self assertEqual scripts N/A N/A included path N/A N/A DummyCommand N/A N/A N/A 
    A fake Command.
     __init__ N/A N/A self N/A kwargs N/A N/A N/A kw val N/A N/A kwargs items N/A N/A N/A setattr self kw val N/A ensure_finalized N/A N/A self N/A N/A N/A N/A N/A BuildScriptsTests N/A TestCase N/A N/A 
    Tests for L{dist.build_scripts_twisted}.
     setUp N/A N/A self N/A N/A N/A N/A self source N/A FilePath N/A N/A self mktemp N/A N/A self target N/A FilePath N/A N/A self mktemp N/A N/A N/A N/A self source makedirs N/A N/A N/A self addCleanup N/A os chdir N/A N/A os getcwd N/A N/A N/A os chdir N/A N/A self source path N/A buildScripts N/A N/A self N/A N/A N/A 
        Write 3 types of scripts and run the L{build_scripts_twisted}
        command.
         N/A N/A N/A self writeScript N/A self source script1 #! /usr/bin/env python2.7
# bogus script w/ Python sh-bang
pass
 N/A N/A N/A self writeScript N/A self source script2.py #!/usr/bin/python
# bogus script w/ Python sh-bang
pass
 N/A N/A N/A self writeScript N/A self source shell.sh #!/bin/sh
# bogus shell script w/ sh-bang
exit 0
 N/A expected N/A script1 script2.py shell.sh N/A cmd N/A N/A self getBuildScriptsCmd N/A self target N/A N/A N/A N/A N/A self source child fn path N/A fn expected N/A N/A N/A cmd finalize_options N/A N/A N/A cmd run N/A N/A N/A N/A self target listdir N/A getBuildScriptsCmd N/A N/A self target scripts N/A N/A N/A 
        Create a distutils L{Distribution} with a L{DummyCommand} and wrap it
        in L{build_scripts_twisted}.

        @type target: L{FilePath}
         N/A dist N/A Distribution N/A N/A dist scripts scripts N/A N/A N/A dist command_obj N/A build N/A DummyCommand build_scripts N/A target path force 1 executable N/A sys executable N/A N/A build_scripts_twisted dist N/A writeScript N/A N/A self dir name text N/A N/A N/A 
        Write the script to disk.
         N/A N/A open N/A N/A N/A dir child name path w f N/A N/A N/A N/A f write text N/A test_notWindows N/A N/A self N/A N/A N/A 
        L{build_scripts_twisted} does not rename scripts on non-Windows
        platforms.
         N/A N/A N/A self patch os name twisted N/A built N/A N/A self buildScripts N/A name N/A script1 script2.py shell.sh N/A N/A N/A N/A self assertTrue N/A name built N/A test_windows N/A N/A self N/A N/A N/A 
        L{build_scripts_twisted} renames scripts so they end with '.py' on
        the Windows platform.
         N/A N/A N/A self patch os name nt N/A built N/A N/A self buildScripts N/A name N/A script1.py script2.py shell.sh.py N/A N/A N/A N/A self assertTrue N/A name built N/A N/A FakeModule N/A object N/A N/A 
    A fake module, suitable for dependency injection in testing.
     __init__ N/A N/A self attrs N/A N/A N/A 
        Initializes a fake module.

        @param attrs: The attrs that will be accessible on the module.
        @type attrs: C{dict} of C{str} (Python names) to objects
         N/A N/A self _attrs attrs N/A __getattr__ N/A N/A self name N/A N/A N/A 
        Gets an attribute of this fake module from its attrs.

        @raise AttributeError: When the requested attribute is missing.
         N/A N/A N/A N/A N/A self _attrs N/A name N/A N/A N/A KeyError N/A N/A N/A AttributeError N/A N/A N/A fakeCPythonPlatform N/A FakeModule N/A python_implementation N/A N/A N/A N/A CPython N/A fakeOtherPlatform N/A FakeModule N/A python_implementation N/A N/A N/A N/A lvhpy WithPlatformTests N/A TestCase N/A N/A 
    Tests for L{_checkCPython} when used with a (fake) C{platform} module.
     test_cpython N/A N/A self N/A N/A N/A 
        L{_checkCPython} returns C{True} when C{platform.python_implementation}
        says we're running on CPython.
         N/A N/A N/A self assertTrue N/A N/A dist _checkCPython platform fakeCPythonPlatform N/A test_other N/A N/A self N/A N/A N/A 
        L{_checkCPython} returns C{False} when C{platform.python_implementation}
        says we're not running on CPython.
         N/A N/A N/A self assertFalse N/A N/A dist _checkCPython platform fakeOtherPlatform N/A N/A