| 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 : |
ó
yp¡Nc @ s× d Z d d l m Z m Z m Z d d l m Z d d l m Z m Z d d l
m Z m Z d d l
m Z d d l m Z d d l m Z d d d
„ ƒ YZ d e e f d „ ƒ YZ d
e e f d „ ƒ YZ d S( 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ÿÿÿÿ( t devnullt getcwdt chdir( t
executable( t PIPEt Popen( t SkipTestt TestCase( t getModule( t FilePath( t ZshScriptTestMixint ScriptTestsMixinc B s2 e Z d Z e d ƒ j j j d ƒ Z d „ Z RS( sr
Mixin for L{TestCase} subclasses which defines a helper function for testing
a Twisted-using script.
t twistedt binc C sŠ | j j | ƒ } | j ƒ s- t d ƒ ‚ n d d l m } t t | j d g d t d t
t ƒ ƒj j
ƒ } | j t | ƒ | ƒ d S( 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.
s5 Script tests do not apply to installed configuration.iÿÿÿÿ( t versions --versiont stdoutt stderrN( R
t preauthChildt existsR t twisted.copyrightR R R t pathR t fileR R t readt assertInt str( t selft namet scriptR t
scriptVersion( ( sE /usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyt
scriptTest s ( t __name__t
__module__t __doc__R t pathEntryt filePatht childR
R ( ( ( sE /usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyR s t ScriptTestsc B sh e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z RS( s%
Tests for the core scripts.
c C s | j d ƒ d S( Nt twistd( R ( R ( ( sE /usr/lib/python2.7/dist-packages/twisted/scripts/test/test_scripts.pyt test_twistd>