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/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyc
ó
ę=Nc@sœdZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZmZdefd	„ƒYZ
d
efd„ƒYZdS(
s,
Tests for L{twisted.application.strports}.
i˙˙˙˙(tTestCase(tstrports(tinternet(tParserTestCase(tFactory(tTCP4ServerEndpointtUNIXServerEndpointtDeprecatedParseTestCasecBs)eZdZd„Zd„Zd„ZRS(s€
    L{strports.parse} is deprecated.  It's an alias for a method that is now
    private in L{twisted.internet.endpoints}.
    cOsYtj||Ž}|j|jgƒ}|jt|ƒdƒ|j|dddƒ|S(Niitmessages|twisted.application.strports.parse was deprecated in Twisted 10.2.0: in favor of twisted.internet.endpoints.serverFromString(Rtparset
flushWarningstassertEqualtlen(tselftatkwtresulttwarnings((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyR	scCsC|j|jd|jƒdd|jfidd6dd6fƒdS(	s=
        Base numeric ports should be parsed as TCP.
        t80tTCPiPtt	interfacei2tbacklogN(RR	tf(R
((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyttest_simpleNumeric"scCsC|j|jd|jƒdd|jfidd6dd6fƒdS(	s
        A collection of keyword arguments with no prefixed type, like 'port=80',
        will be parsed as keyword arguments to 'tcp'.
        sport=80RiPRRi2RN(RR	R(R
((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyttest_allKeywords*s(t__name__t
__module__t__doc__R	RR(((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyRs		tServiceTestCasecBs2eZdZd„Zd„Zd„Zd„ZRS(s(
    Tests for L{strports.service}.
    cCsśtƒ}tƒ}d}tjdt|ƒ|d|ƒ}|j|tjƒ|j|j	t
ƒ|j|jtƒ|j|jj
|ƒ|j|j|ƒ|j|jj|ƒdS(sž
        L{strports.service} returns a L{StreamServerEndpointService}
        constructed with an endpoint produced from
        L{endpoint.serverFromString}, using the same syntax.
        i9stcp:treactorN(tobjectRRtservicetstrtassertIsInstanceRtStreamServerEndpointServiceRt_raiseSynchronouslytTruetendpointRt_porttassertIdenticaltfactoryt_reactor(R
RtaFactoryt	aGoodPorttsvc((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyttest_service9s		cCs<ddlm}tjddƒ}|j|jj|ƒdS(sp
        L{strports.service} will use the default reactor when none is provided
        as an argument.
        i˙˙˙˙(Rstcp:80N(ttwisted.internetRRR tNoneR(R&R*(R
t
globalReactortaService((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyttest_serviceDefaultReactorPscCs
tjdd
dƒ}|j|jtƒ|j|jgƒ}|j|ddt	ƒ|j|dddƒ|jt
|ƒdƒtjdd
d
ƒ}|j|jtƒ|j|jgƒ}|j|ddt	ƒ|j|ddd	ƒ|jt
|ƒdƒd
S(sÜ
        L{strports.service} still accepts a 'default' argument, which will
        affect the parsing of 'default' (i.e. 'not containing a colon')
        endpoint descriptions, but this behavior is deprecated.
        t8080tunixitcategoryRsxThe 'default' parameter was deprecated in Twisted 10.2.0.  Use qualified endpoint descriptions; for example, 'tcp:8080'.istcp:8080s9The 'default' parameter was deprecated in Twisted 10.2.0.N(RR R0R"R&RR
ttest_serviceDeprecatedDefaultRtDeprecationWarningRR(R
R-R((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyR7Zs cCs„tjddƒ}|j|jtƒ|j|jgƒ}|j|ddt	ƒ|j|dddƒ|jt
|ƒdƒdS(sP
        Unqualified strport descriptions, i.e. "8080", are deprecated.
        R4iR6RsqUnqualified strport description passed to 'service'.Use qualified endpoint descriptions; for example, 'tcp:8080'.iN(RR R0R"R&RR
t!test_serviceDeprecatedUnqualifiedRR8R(R
R-R((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyR9vs(RRRR.R3R7R9(((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyR4s
		
	N(Rttwisted.trial.unittestRttwisted.applicationRRt$twisted.internet.test.test_endpointsRttwisted.internet.protocolRttwisted.internet.endpointsRRRR(((s>/usr/lib/python2.7/dist-packages/twisted/test/test_strports.pyt<module>s#

Youez - 2016 - github.com/yon3zu
LinuXploit