403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/scripts/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyc
ó
yp¡Nc@s×dZddlmZmZmZddlmZddlmZm	Z	ddl
mZmZddl
mZddlmZddlmZd	dd
„ƒYZdeefd„ƒYZd
eefd„ƒYZdS(s»
Tests for the command-line scripts in the top-level I{bin/} directory.

Tests for actual functionality belong elsewhere, written in a way that doesn't
involve launching child processes.
iÿÿÿÿ(tdevnulltgetcwdtchdir(t
executable(tPIPEtPopen(tSkipTesttTestCase(t	getModule(tFilePath(tZshScriptTestMixintScriptTestsMixincBs2eZdZedƒjjjdƒZd„ZRS(sr
    Mixin for L{TestCase} subclasses which defines a helper function for testing
    a Twisted-using script.
    ttwistedtbincCsŠ|jj|ƒ}|jƒs-tdƒ‚nddlm}tt|jdgdt	dt
tƒƒjj
ƒ}|jt|ƒ|ƒdS(s
        Verify that the given script runs and uses the version of Twisted
        currently being tested.

        This only works when running tests against a vcs checkout of Twisted,
        since it relies on the scripts being in the place they are kept in
        version control, and exercises their logic for finding the right version
        of Twisted to use in that situation.

        @param name: A path fragment, relative to the I{bin} directory of a
            Twisted source checkout, identifying a script to test.
        @type name: C{str}

        @raise SkipTest: if the script is not where it is expected to be.
        s5Script tests do not apply to installed configuration.iÿÿÿÿ(tversions	--versiontstdouttstderrN(R
tpreauthChildtexistsRttwisted.copyrightRRRtpathRtfileRRtreadtassertIntstr(tselftnametscriptRt
scriptVersion((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyt
scriptTests(	t__name__t
__module__t__doc__Rt	pathEntrytfilePathtchildR
R(((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyRstScriptTestscBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„ZRS(s%
    Tests for the core scripts.
    cCs|jdƒdS(Nttwistd(R(R((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyttest_twistd>scCsØ|jjdƒ}|jƒs-tdƒ‚ntƒ}|jt|ƒt|jƒƒ}|j	ƒt|j
ƒ|jdƒjdƒtt
|j
ddgdtdttƒƒjjƒ}|jt|j
ƒ|ƒdS(	s‡
        The twistd script adds the current working directory to sys.path so
        that it's able to import modules from it.
        R%s5Script tests do not apply to installed configuration.sbar.tacsimport sys
print sys.path
s-nyRRN(R
R#RRRt
addCleanupRR	tmktemptmakedirsRt
setContentRRRRRRRRtrepr(RRtcwdttestDirtoutput((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyttest_twistdPathInsertBs	

cCs|jdƒdS(Ntmanhole(R(R((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyttest_manholeYscCs|jdƒdS(Nttrial(R(R((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyt
test_trial]scCsÌ|jjdƒ}|jƒs-tdƒ‚ntƒ}|jt|ƒt|jƒƒ}|j	ƒt|j
ƒ|jdƒjdƒtt
|j
dgdtdttƒƒjjƒ}|jd|ƒd	S(
s†
        The trial script adds the current working directory to sys.path so that
        it's able to import modules from it.
        R2s5Script tests do not apply to installed configuration.sfoo.pyttfooRRtPASSEDN(R
R#RRRR'RR	R(R)RR*RRRRRRRR(RRR,R-R.((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyttest_trialPathInsertas	

cCs|jdƒdS(Nt
pyhtmlizer(R(R((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyttest_pyhtmlizervscCs|jdƒdS(Nttap2rpm(R(R((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyttest_tap2rpmzscCs|jdƒdS(Nttap2deb(R(R((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyttest_tap2deb~scCs|jdƒdS(Nt
tapconvert(R(R((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyttest_tapconvert‚scCsrddlm}|jd|jgƒ}|jt|ddƒ|jd|ddƒ|jdt|ƒƒd	S(
s„
        The entire L{twisted.scripts.tkunzip} module, part of the old Windows
        installer tool chain, is deprecated.
        iÿÿÿÿ(ttkunziptoffendingFunctionsitcategorysetwisted.scripts.tkunzip was deprecated in Twisted 11.1.0: Seek unzipping software outside of Twisted.tmessageiN(ttwisted.scriptsR@t
flushWarningsttest_deprecatedTkunziptassertEqualtDeprecationWarningtlen(RR@twarnings((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyRF†s	(
RRR R&R/R1R3R7R9R;R=R?RF(((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyR$:s									tZshIntegrationTestCasecBs)eZdZdddddddgZRS(sH
    Test that zsh completion functions are generated without error
    R%s$twisted.scripts.twistd.ServerOptionsR2stwisted.scripts.trial.OptionsR8s twisted.scripts.htmlizer.OptionsR:s!twisted.scripts.tap2rpm.MyOptionsR<s!twisted.scripts.tap2deb.MyOptionsR>s)twisted.scripts.tapconvert.ConvertOptionsR0s!twisted.scripts.manhole.MyOptions(stwistds$twisted.scripts.twistd.ServerOptions(strialstwisted.scripts.trial.Options(s
pyhtmlizers twisted.scripts.htmlizer.Options(stap2rpms!twisted.scripts.tap2rpm.MyOptions(stap2debs!twisted.scripts.tap2deb.MyOptions(s
tapconverts)twisted.scripts.tapconvert.ConvertOptions(smanholes!twisted.scripts.manhole.MyOptions(RRR tgenerateFor(((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyRK—sN((R tosRRRtsysRt
subprocessRRttwisted.trial.unittestRRttwisted.python.modulesRttwisted.python.filepathR	t"twisted.python.test.test_shellcompR
RR$RK(((sE/usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyt<module>	s%]

Youez - 2016 - github.com/yon3zu
LinuXploit