Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/test/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyc


=Nc@sIdZddlZddlZddlmZyddlmZWnek
r[dZnXddl	m
Z
ddlmZm
Z
ddlmZde
jfd	YZd
ejfdYZdejfd
YZde
jfdYZdefdYZde
jfdYZdefdYZde
jfdYZde
jfdYZdefdYZdeefdYZdefdYZ d efd!YZ!d"e
jfd#YZ"d$e
jfd%YZ#d&e
jfd'YZ$d(e
jfd)YZ%d*e
jfd+YZ&dS(,s(
Test cases for twisted.reflect module.
iN(tModuleImporter(tdeque(tunittest(treflecttutil(tVersiontSettableTestcBs#eZdZdZdZRS(cCstj|_dS(N(RtSettabletsetter(tself((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytsetUpscCs
|`dS(N(R(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttearDownscCsF|jdddd|j|jjd|j|jjddS(Ntaitbi(RtassertEqualRR
(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttestSets(t__name__t
__module__R
RR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs		tAccessorTestercBs#eZdZdZdZRS(cCs||_|jd|dS(Ntx(tyt	reallySet(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytset_x&s	cCs
d|_dS(Ni(tq(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytget_z+s	cCs|jddS(NR(t	reallyDel(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytdel_z0s(RRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR$s		tPropertyAccessorTestercBs8eZdZdZdZdZdZdZRS(sJ
    Test class to check L{reflect.PropertyAccessor} functionalities.
    icCs
||_dS(N(ts(R	tr((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytset_r;scCs||_|jd|dS(NR(RR(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR?s	cCs
d|_dS(Ni(R(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRDs	cCs|jddS(NR(R(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRIs(RRt__doc__RRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR5s			tAccessorTestcBs,eZdZdZdZdZRS(cCst|_dS(N(Rttester(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR
OscCs<d|j_|j|jjd|j|jjddS(Ni(R!RRR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRRscCs0|j|jjd|j|jjddS(Ni(RR!tzR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttestGetWscCsz|jj|j|jjd|j`|jt|jddd|j_|j`|jt|jdddS(NiRiR(R!R"RRthasattrR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttestDel[s
		(RRR
RR#R%(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR Ns			tPropertyAccessorTestcBs2eZdZdZdZdZdZRS(sQ
    Tests for L{reflect.PropertyAccessor}, using L{PropertyAccessorTester}.
    cCst|_dS(N(RR!(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR
kscCsR|j|jjdd|j_|j|jjd|j|jjddS(sb
        If an attribute is present in the class, it can be retrieved by
        default.
        iiN(RR!RR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_setWithDefaultValueoscCs*d|jjd<|j|jjddS(sn
        The attribute value can be overriden by directly modifying the value in
        C{__dict__}.
        i
RN(R!t__dict__RR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_getValueInDictzscCs|jtt|jddS(s
        If a getter is defined on an attribute but without any default value,
        it raises C{AttributeError} when trying to access it.
        RN(tassertRaisestAttributeErrortgetattrR!(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_notYetInDicts(RRRR
R'R)R-(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR&fs
				tLookupsTestCasecBsheZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZRS(sC
    Tests for L{namedClass}, L{namedModule}, and L{namedAny}.
    cCs |jtjdtjdS(sY
        L{namedClass} should return the class object for the name it is passed.
        stwisted.python.reflect.SummerN(tassertIdenticalRt
namedClasstSummer(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_namedClassLookupscCs|jtjdtdS(sc
        L{namedModule} should return the module object for the name it is
        passed.
        stwisted.python.reflectN(R/RtnamedModule(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_namedModuleLookupscCs,ddl}|jtjd|jdS(sY
        L{namedAny} should return the package object for the name it is passed.
        iNstwisted.python(ttwisted.pythonR/RtnamedAnytpython(R	ttwisted((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_namedAnyPackageLookupscCs|jtjdtdS(sX
        L{namedAny} should return the module object for the name it is passed.
        stwisted.python.reflectN(R/RR6(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_namedAnyModuleLookupscCs |jtjdtjdS(sW
        L{namedAny} should return the class object for the name it is passed.
        stwisted.python.reflect.SummerN(R/RR6R1(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_namedAnyClassLookupscCs#|jtjdtjjdS(s
        L{namedAny} should return the object an attribute of a non-module,
        non-package object is bound to for the name it is passed.
        s'twisted.python.reflect.Summer.reallySetN(RRR6R1R(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_namedAnyAttributeLookupscCs&|jtjdtjjjdS(s
        L{namedAny} should return the object an attribute of an object which
        itself was an attribute of a non-module, non-package object is bound to
        for the name it is passed.
        s/twisted.python.reflect.Summer.reallySet.__doc__N(R/RR6R1RR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt"test_namedAnySecondAttributeLookupscCs\|jttjd|jttjd|jttjd|jttjddS(s
        Exceptions raised by modules which L{namedAny} causes to be imported
        should pass through L{namedAny} to the caller.
        stwisted.test.reflect_helper_ZDEstwisted.test.reflect_helper_VEstwisted.test.reflect_helper_IEN(R*tZeroDivisionErrorRR6t
ValueErrortImportError(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_importExceptionss


cCsF|jttjd|jttjd|jttjddS(s
        If segments on the end of a fully-qualified Python name represents
        attributes which aren't actually present on the object represented by
        the earlier segments, L{namedAny} should raise an L{AttributeError}.
        stwisted.nosuchmoduleintheworlds twisted.nosuch.modulein.theworlds7twisted.python.reflect.Summer.nosuchattributeintheworldN(R*R+RR6(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_attributeExceptionss

cCs|jtjtjd}|jt|d|jtjtjd}|jt|d|jtjtjd}|jt|d|jtjtjd}|jt|dxOd	d
dgD]>}|jtjtj|}|jt|d|fqWd
S(s
        Passing a name which isn't a fully-qualified Python name to L{namedAny}
        should result in one of the following exceptions:
        - L{InvalidName}: the name is not a dot-separated list of Python objects
        - L{ObjectNotFound}: the object doesn't exist
        - L{ModuleNotFound}: the object doesn't exist and there is only one
          component in the name
        tnosuchmoduleintheworlds(No module named 'nosuchmoduleintheworld's@#$@(#.!@(#!@#s('@#$@(#.!@(#!@#' does not name an objectstcelfer.nohtyp.detsiwts0'tcelfer.nohtyp.detsiwt' does not name an objecttsEmpty module names.twistedstwisted.stwisted..pythonsOname must be a string giving a '.'-separated list of Python identifiers, not %rN(R*RtModuleNotFoundR6RtstrtObjectNotFoundtInvalidName(R	terrtinvalidName((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_invalidNamess(						(
RRRR2R4R9R:R;R<R=RARBRK(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR.s								
			tImportHooksLookupTestscBs eZdZdZdZRS(s
    Tests for lookup methods in the presence of L{ihooks}-style import hooks.
    Runs all of the tests from L{LookupsTestCase} after installing a custom
    import hook.
    cCst|_|jjdS(s
        Perturb the normal import behavior subtly by installing an import
        hook.  No custom behavior is provided, but this adds some extra
        frames to the call stack, which L{namedAny} must be able to account
        for.
        N(Rtimportertinstall(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR
)scCs|jjdS(s3
        Uninstall the custom import hook.
        N(RMt	uninstall(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR4s(RRRR
R(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRL#s	t
ObjectGrepcBsqeZdZdZdZdZdZdZdZdZ	dZ
ed
krod	e
_
nRS(cCskt}i|d6}id|6}|jdtj||tj|jdtj||tjdS(sW
        Test references search through a dictionnary, as a key or as a value.
        s[None]s{None}N(tobjecttNonetassertInRtobjgreptisSame(R	totd1td2((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_dictionary=s
	

"cCs;t}d|g}|jdtj||tjdS(s8
        Test references search through a list.
        s[1]N(RQRRRSRRTRU(R	RVtL((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt	test_listHs	cCs;t}|df}|jdtj||tjdS(s9
        Test references search through a tuple.
        s[0]N(RQRRRSRRTRU(R	RVtT((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt
test_tupleQs	cCsTdddY}t}|}||_|jdtj||tjdS(sE
        Test references search through an object attribute.
        tDummycBseZRS((RR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR^^ss.oN((RQRVRSRRTRU(R	R^RVtd((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt
test_instanceZs
			cCsQdddY}|}tj|}|jdtj||tjdS(sB
        Test references search through a weakref object.
        R^cBseZRS((RR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR^jss()N((tweakreftrefRSRRTRU(R	R^RVtw1((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_weakreffs	cCsdddY}|}|j}|jdtj||jtj|jdtj||jtj|jdtj||jtjdS(sK
        Test references search through method special attributes.
        R^cBseZdZRS(cSsdS(N((R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytdummyvs(RRRe(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR^uss.im_selfs	.im_classs.im_funcN((ReRSRRTtim_selfRUtim_classtim_func(R	R^RVtm((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_boundMethodqs		%%c
CsdddY}|}idd6dd
6d|6}d
d|dg}|i|f}idd6d	d
6|d6}|}||_|j}tj|}	|jdtj|	|tjd
S(sF
        Test references search using complex set of objects.
        R^cBseZdZRS(cSsdS(N((R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytmethods(RRRk(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR^stbaztQuuxtFooshitfooitbariis!().im_self.attr[2][0][2]{'Foosh'}N((((	RRtattrRkRaRbRSRRTRU(
R	R^RVtD1RZR\tD2tiRitw((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_everythings				cCsg}|g}||g}||g}|jdgtj||tjdd|jddgtj||tjdd|jdddgtj||tjdddS(	s6
        Test the depth of references search.
        s[0]tmaxDepthis[1][0]is	[1][1][0]iN(RRRTRU(R	RR
tcR_((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_depthLimits	+.cCsRt}t}|jd|j||jdtj||tjdS(sW
        Test references search through a deque object. Only for Python > 2.3.
        s[1]N(RQRtappendRRRSRRTRU(R	RVtD((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt
test_deques
		

sDeque not availableN(RRRYR[R]R`RdRjRvRyR|RRRtskip(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRP<s										
	tGetClasscBseZdZdZRS(cCsXdddY}|}|jtj|jd|jtj|jddS(NtOldClasscBseZRS((RR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRstclasstclassobj((RR(RSRtgetClassRR(R	Rtold((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttestOlds	cCs[dtfdY}|}|jtj|jd|jtj|jddS(NtNewClasscBseZRS((RR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRsttype(RQRRRR(R	Rtnew((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttestNews	(RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR~s	t	BreakablecBs&eZeZeZdZdZRS(cCs |jrtdndSdS(Nsstr!s<Breakable>(tbreakStrtRuntimeError(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt__str__s	cCs |jrtdndSdS(Nsrepr!sBreakable()(t	breakReprR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt__repr__s	(RRtFalseRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs	t
BrokenTypecBs#eZeZdZeeZRS(cCs|jrtdndS(Nsno nameR(t	breakNameR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytget___name__s	(RRRRRtproperty(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs	tBTBasecBseZeZeZeZRS((RRRt
__metaclass__tTrueRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRstNoClassAttrcBseZedZRS(cCs|jS(N(t	not_class(R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt<lambda>s(RRRt	__class__(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRstSafeReprcBsVeZdZdZdZdZdZdZdZdZ	dZ
RS(	s2
    Tests for L{reflect.safe_repr} function.
    cCs2dddg}|jtj|t|dS(sg
        L{reflect.safe_repr} produces the same output as C{repr} on a working
        object.
        iiiN(RRt	safe_reprtrepr(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_workingReprscCset}t|_tj|}|jd||jtjjt	d||jd|dS(s
        L{reflect.safe_repr} returns a string with class name, address, and
        traceback when the repr call failed.
        sBreakable instance at 0xisRuntimeError: repr!N(
RRRRRRStostpathtsplitextt__file__(R	R
tbRepr((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_brokenReprs		 cCs5t}t|_|jtj|t|dS(sT
        L{reflect.safe_repr} isn't affected by a broken C{__str__} method.
        N(RRRRRRR(R	R
((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_brokenStrs		cCs7dtfdY}tj|tj|dS(NtXcBseZeZRS((RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs(RRR(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_brokenClassReprs
csqdtfdY}id|6fd}|jtjtj|tj|}|jd|dS(s
        L{unsignedID} is used to print ID of the object in case of error, not
        standard ID value which can be negative.
        RcBseZeZRS((RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRsidcs1y|SWnttfk
r,t|SXdS(N(t	TypeErrortKeyErrortid(tobj(tids(s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pytfakeID st0x64N(Rt
addCleanupRt
setIDFunctionRRRS(R	RRtxRepr((Rs=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_unsignedIDs
cCs7dtfdY}tj|tj|dS(NRcBseZeZRS((RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR,s(RRR(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_brokenClassStr+s
cCset}t|_tj|}|jd||jtjjt	d||jd|dS(s
        If an object raises an exception when accessing its C{__class__}
        attribute, L{reflect.safe_repr} uses C{type} to retrieve the class
        object.
        sNoClassAttr instance at 0xisRuntimeError: repr!N(
RRRRRRSRRRR(R	R
R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_brokenClassAttribute2s		 cCsldtfdY}tj|}|jd||jtjjtd||jd|dS(s
        If a class raises an exception when accessing its C{__name__} attribute
        B{and} when calling its C{__str__} implementation, L{reflect.safe_repr}
        returns 'BROKEN CLASS' instead of the class name.
        RcBseZeZRS((RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRFss<BROKEN CLASS AT 0xisRuntimeError: repr!N(RRRRSRRRR(R	RR((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_brokenClassNameAttribute@s
 (RRRRRRRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs									tSafeStrcBsMeZdZdZdZdZdZdZdZdZ	RS(s1
    Tests for L{reflect.safe_str} function.
    cCs2dddg}|jtj|t|dS(Niii(RRtsafe_strRF(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_workingStrTscCs#t}t|_tj|dS(N(RRRRR(R	R
((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRYs		cCs#t}t|_tj|dS(N(RRRRR(R	R
((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyR_s		cCs7dtfdY}tj|tj|dS(NRcBseZeZRS((RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRfs(RRR(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRes
cCs7dtfdY}tj|tj|dS(NRcBseZeZRS((RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRms(RRR(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRls
cCset}t|_tj|}|jd||jtjjt	d||jd|dS(s
        If an object raises an exception when accessing its C{__class__}
        attribute, L{reflect.safe_str} uses C{type} to retrieve the class
        object.
        sNoClassAttr instance at 0xisRuntimeError: str!N(
RRRRRRSRRRR(R	R
tbStr((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRss		 cCsldtfdY}tj|}|jd||jtjjtd||jd|dS(s
        If a class raises an exception when accessing its C{__name__} attribute
        B{and} when calling its C{__str__} implementation, L{reflect.safe_str}
        returns 'BROKEN CLASS' instead of the class name.
        RcBseZeZRS((RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRss<BROKEN CLASS AT 0xisRuntimeError: str!N(RRRRSRRRR(R	RtxStr((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs
 (
RRRRRRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyROs						tFilenameToModulecBs eZdZdZdZRS(s9
    Test L{reflect.filenameToModuleName} detection.
    cCsjtjtjjdd}|j|dtjtjjddtjj}|j|ddS(sD
        Tests it finds good name for directories/packages.
        R8ttestN(RtfilenameToModuleNameRRtjoinRtsep(R	tmodule((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_directorys
cCs5tjtjjddd}|j|ddS(s4
        Test it finds good name for files.
        R8Rstest_reflect.pyttest_reflectN(RRRRRR(R	R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt	test_files(RRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs	
tFullyQualifiedNameTestscBsDeZdZdZdZdZdZdZdZRS(s1
    Test for L{reflect.fullyQualifiedName}.
    cCs|jtj||dS(se
        Helper to check that fully qualified name of C{obj} results to
        C{expected}.
        N(RRtfullyQualifiedName(R	Rtexpected((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt_checkFullyQualifiedNamescCs?ddl}|j|dddl}|j|jddS(sl
        L{reflect.fullyQualifiedName} returns the full name of a package and
        a subpackage.
        iNR8stwisted.python(R8RR5R7(R	R8((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_packagescCs6|jtdddl}|j|jjddS(sh
        L{reflect.fullyQualifiedName} returns the name of a module inside a a
        package.
        stwisted.python.reflectiNstwisted.trial.unittest(RRttwisted.trial.unittestttrialR(R	R8((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_modulescCs|jtjddS(sc
        L{reflect.fullyQualifiedName} returns the name of a class and its
        module.
        stwisted.python.reflect.SettableN(RRR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt
test_classscCs|jtjddS(si
        L{reflect.fullyQualifiedName} returns the name of a function inside its
        module.
        s)twisted.python.reflect.fullyQualifiedNameN(RRR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt
test_functionscCs3|jtjjd|jtjjddS(su
        L{reflect.fullyQualifiedName} returns the name of a method inside its
        class and its module.
        s1twisted.python.reflect.PropertyAccessor.reallyDelN(RRtPropertyAccessorR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_methods(	RRRRRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs								tDeprecationTestCasecBs)eZdZdZdZdZRS(s5
    Test deprecations in twisted.python.reflect
    cCsA|jtddddtjdtd}|j|ddS(	s7
        Test deprecation of L{reflect.macro}.
        tTwistediiiRstest = 1iN(tcallDeprecatedRRtmacroRR(R	tresult((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt
test_macroscCs/|jtdddddftjtdS(s=
        Test deprecation of L{reflect.allYourBase}.
        Riisinspect.getmroN(RRRtallYourBaseR(R	((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_allYourBasescCs;g}|jtdddddftjt|ddS(sA
        Test deprecation of L{reflect.accumulateBases}.
        Riisinspect.getmroN(RRRtaccumulateBasesRRR(R	tl((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyttest_accumulateBasess(RRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyRs		('RRaRtihooksRtcollectionsRR@RRt
twisted.trialRR5RRttwisted.python.versionsRtTestCaseRtAccessorRRRR R&R.RLRPR~RQRRRRRRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_reflect.pyt<module>s6

&seAA