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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyc
ó
ê=Nc@síddlZddlZddlmZddlmZmZyejWnek
rbdZ	nXdZ	defd„ƒYZdefd„ƒYZ
d	eje
fd
„ƒYZdeje
fd„ƒYZd
ejefd„ƒYZdS(iÿÿÿÿN(tunittest(tIPv4AddresstUNIXAddresss"Platform does not support symlinkstAddressTestCaseMixincBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsB|j|jƒ|jƒkƒ|j|jƒ|jƒkƒdS(s
        Two different address instances, sharing the same properties are
        considered equal by C{==} and not considered not equal by C{!=}.

        Note: When applied via UNIXAddress class, this uses the same
        filename for both objects being compared.
        N(t
assertTruetbuildAddresstassertFalse(tself((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyttest_addressComparisonsc		Cs÷|jƒ}djddddddgƒ}||ƒ}tj||ƒ}|jd
|d|fƒ|j|jj|j	d	ƒƒg|j	d
ƒj
dƒD]}|jƒ^q}|j|g|jD]$}|d	t
||dƒf^qȃd
S(sí
        Verify that the string representation of an address object conforms to a
        simple pattern (the usual one for Python object reprs) and contains
        values which accurately reflect the attributes of the address.
        tt^s([^\(]+Address)s\(s([^)]+)s\)t$sI%s does not match the standard __str__ pattern ClassName(arg1, arg2, etc)iit,iN(RtjointretmatchtassertNotEqualstNonetassertEqualt	__class__t__name__tgrouptsplittstriptaddressArgSpectgetattr(	RtstringFunctiontaddrtpatterntstringValuetmtxtargstargSpec((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyt_stringRepresentations&1cCs|jtƒdS(s
        C{str} can be used to get a string representation of an address instance
        containing information about that address.
        N(R"tstr(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyttest_str<scCs|jtƒdS(sŽ
        C{repr} can be used to get a string representation of an address
        instance containing information about that address.
        N(R"trepr(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyt	test_reprDscCs4|jƒ}it|6}|j||jƒƒdS(s“
        C{__hash__} can be used to get a hash of an address, allowing
        addresses to be used as keys in dictionaries, for instance.
        N(RtTrueR(RRtd((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyt	test_hashLs
cCsB|j|jƒ|jƒkƒ|j|jƒ|jƒkƒdS(s~
        Check that comparison operators work correctly on address objects
        when a different name is passed in
        N(RRtbuildDifferentAddressR(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyttest_differentNamesComparisonVscCs\|j|gƒ}|j|ddtƒ|j|dd|ƒ|jt|ƒdƒdS(s{
        Assert that the a DeprecationWarning with the given message was
        emitted against the given method.
        itcategorytmessageiN(t
flushWarningsRtDeprecationWarningtlen(Rt
testMethodR-twarnings((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pytassertDeprecations_s(	Rt
__module__RR"R$R&R)R+R3(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyRs					
		tIPv4AddressTestCaseMixincBseZdddfZRS(	ttypes%sthosts%rtports%d(stypes%s(shosts%r(R8s%d(RR4R(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR5kstIPv4AddressTCPTestCasecBs#eZd„Zd„Zd„ZRS(cCstdddƒS(s²
        Create an arbitrary new L{IPv4Address} instance with a C{"TCP"}
        type.  A new instance is created for each call, but always for the
        same address.
        tTCPs	127.0.0.1i(R(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyRqscCstdddƒS(sK
        Like L{buildAddress}, but with a different fixed address.
        R:s	127.0.0.2i(R(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR*zscCs1d}tdddddƒ}|j|j|ƒS(s€
        If a value is passed for the C{_bwHack} parameter to L{IPv4Address},
        a deprecation warning is emitted.
        sMtwisted.internet.address.IPv4Address._bwHack is deprecated since Twisted 11.0R:s	127.0.0.3it_bwHack(RR3ttest_bwHackDeprecation(RR-taddress((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR<s(RR4RR*R<(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR9ps			tIPv4AddressUDPTestCasecBs#eZd„Zd„Zd„ZRS(cCstdddƒS(s²
        Create an arbitrary new L{IPv4Address} instance with a C{"UDP"}
        type.  A new instance is created for each call, but always for the
        same address.
        tUDPs	127.0.0.1i(R(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyRscCstdddƒS(sK
        Like L{buildAddress}, but with a different fixed address.
        R?s	127.0.0.2i(R(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR*˜scCs1d}tdddddƒ}|j|j|ƒS(s€
        If a value is passed for the C{_bwHack} parameter to L{IPv4Address},
        a deprecation warning is emitted.
        sMtwisted.internet.address.IPv4Address._bwHack is deprecated since Twisted 11.0R?s	127.0.0.3iR;(RR3R<(RR-R=((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR<Ÿs(RR4RR*R<(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR>Žs			tUNIXAddressTestCasecBsVeZd	Zd„Zd„Zd„Zd„Zee_d„Z	ee	_d„Z
RS(
tnames%rcCs"|jƒ|_|jƒ|_dS(N(tmktempt_socketAddresst
_otherAddress(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pytsetUp¯scCs
t|jƒS(s•
        Create an arbitrary new L{UNIXAddress} instance.  A new instance is
        created for each call, but always for the same address.
        (RRC(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR´scCs
t|jƒS(sK
        Like L{buildAddress}, but with a different fixed address.
        (RRD(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR*¼scCsf|jƒ}t|jdƒ|_tjtjj|jƒ|ƒ|jt	|jƒt	|ƒkƒdS(sU
        UNIXAddress objects compare as equal if they link to the same file.
        twN(
RBtopenRCtfdtostsymlinktpathtabspathRR(RtlinkName((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyttest_comparisonOfLinkedFilesÃs
cCso|jƒ}t|jdƒ|_tjtjj|jƒ|ƒ|jt	t
|jƒƒt	t
|ƒƒƒdS(sU
        UNIXAddress Objects that compare as equal have the same hash value.
        RFN(RBRGRCRHRIRJRKRLRthashR(RRM((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyttest_hashOfLinkedFilesÏs
cCs1d}t|jƒddƒ}|j|j|ƒS(s€
        If a value is passed for the C{_bwHack} parameter to L{UNIXAddress},
        a deprecation warning is emitted.
        sMtwisted.internet.address.UNIXAddress._bwHack is deprecated since Twisted 11.0R;tUNIX(RRBR3R<(RR-R=((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR<Ûs(snames%r((snames%r(RR4RRERR*RNtsymlinkSkiptskipRPR<(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyR@¬s									(RRIt
twisted.trialRttwisted.internet.addressRRRJtAttributeErrorRRRtobjectRR5tTestCaseR9R>R@(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_address.pyt<module>s

Y

Youez - 2016 - github.com/yon3zu
LinuXploit