/opt/imh-python/lib/python3.9/unittest/test/testmock/__pycache__
NameSizeModeActions
support.cpython-39.opt-1.pyc8010644editdlrm
support.cpython-39.opt-2.pyc7500644editdlrm
support.cpython-39.pyc8010644editdlrm
testasync.cpython-39.opt-1.pyc463430644editdlrm
testasync.cpython-39.opt-2.pyc463430644editdlrm
testasync.cpython-39.pyc463430644editdlrm
testcallable.cpython-39.opt-1.pyc51000644editdlrm
testcallable.cpython-39.opt-2.pyc51000644editdlrm
testcallable.cpython-39.pyc51000644editdlrm
testhelpers.cpython-39.opt-1.pyc428890644editdlrm
testhelpers.cpython-39.opt-2.pyc428890644editdlrm
testhelpers.cpython-39.pyc428890644editdlrm
testmagicmethods.cpython-39.opt-1.pyc207300644editdlrm
testmagicmethods.cpython-39.opt-2.pyc207300644editdlrm
testmagicmethods.cpython-39.pyc207300644editdlrm
testmock.cpython-39.opt-1.pyc702800644editdlrm
testmock.cpython-39.opt-2.pyc702800644editdlrm
testmock.cpython-39.pyc702800644editdlrm
testpatch.cpython-39.opt-1.pyc700800644editdlrm
testpatch.cpython-39.opt-2.pyc700780644editdlrm
testpatch.cpython-39.pyc700800644editdlrm
testsealable.cpython-39.opt-1.pyc70880644editdlrm
testsealable.cpython-39.opt-2.pyc69280644editdlrm
testsealable.cpython-39.pyc70880644editdlrm
testsentinel.cpython-39.opt-1.pyc20000644editdlrm
testsentinel.cpython-39.opt-2.pyc20000644editdlrm
testsentinel.cpython-39.pyc20000644editdlrm
testwith.cpython-39.opt-1.pyc123290644editdlrm
testwith.cpython-39.opt-2.pyc123290644editdlrm
testwith.cpython-39.pyc123290644editdlrm
__init__.cpython-39.opt-1.pyc6840644editdlrm
__init__.cpython-39.opt-2.pyc6840644editdlrm
__init__.cpython-39.pyc6840644editdlrm
__main__.cpython-39.opt-1.pyc5780644editdlrm
__main__.cpython-39.opt-2.pyc5780644editdlrm
__main__.cpython-39.pyc5780644editdlrm
Edit: /opt/imh-python/lib/python3.9/unittest/test/testmock/__pycache__/testcallable.cpython-39.pyc (5100B)
a dh@sfddlZddlmZmZmZddlmZmZmZm Z m Z m Z m Z Gdddej ZedkrbedS)N) is_instanceX SomeClass)Mock MagicMockNonCallableMagicMockNonCallableMockpatchcreate_autospec CallableMixinc@sleZdZddZddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZdS) TestCallablecCs$|t|t|t|tdSN) assertTruerr assertFalser selfmockrD/opt/imh-python/lib/python3.9/unittest/test/testmock/testcallable.pyassertNotCallableszTestCallable.assertNotCallablecCsFttfD]4}|t||t|d||jjt |q dS)N__call__) rr assertRaises TypeErrorrhasattrZassertIn __class____name__reprrrrrtest_non_callables zTestCallable.test_non_callablecCs$|ttt|tttdSr )r issubclassrrrrrrrrtest_hierarchyszTestCallable.test_hierarchycCs<t}|tt|jtt}|tt|jtdSr ) rrrtypeonerrtwor)rr"r#rrrtest_attributes#szTestCallable.test_attributescCs\Gdddt}|}|tt|j|Gdddt}|}|tt|j|dS)Nc@s eZdZdS)z-TestCallable.test_subclasses..MockSubNr __module__ __qualname__rrrrMockSub,sr(c@s eZdZdS)z.TestCallable.test_subclasses..MagicSubNr%rrrrMagicSub2sr))rrrr!r"rr#)rr(r"r)r#rrrtest_subclasses+s zTestCallable.test_subclassescCsLtdtdd}|}||j|}||||t|dS)N%s.XTspec r rstart addCleanupstopassert_called_once_withrrrrpatcherrinstancerrrtest_patch_spec9s  zTestCallable.test_patch_speccCsLtdtdd}|}||j|}||||t|dS)Nr+Tspec_setr.r3rrrtest_patch_spec_setEs  z TestCallable.test_patch_spec_setcCs@tdttd}|}||j|||t|dS)Nr+r, r rrr/r0r1rrrrr4rrrrtest_patch_spec_instanceQs   z%TestCallable.test_patch_spec_instancecCs@tdttd}|}||j|||t|dS)Nr+r7r:r;rrrtest_patch_spec_set_instanceZs   z)TestCallable.test_patch_spec_set_instancec CsGdddt}Gddd|}Gdddt|}dD]}|||fD]}tdtfi||i}|}||t|t|t t |d |}||d d d |d d d | d d d |j d d d WdqD1s0YqDq6dS) Nc@seZdZddZdS)z>TestCallable.test_patch_spec_callable_class..CallableXcSsdSr rrrrrrezGTestCallable.test_patch_spec_callable_class..CallableX.__call__N)rr&r'rrrrr CallableXdsr?c@s eZdZdS)z8TestCallable.test_patch_spec_callable_class..SubNr%rrrrSubgsr@c@s eZdZdS)z:TestCallable.test_patch_spec_callable_class..MultiNr%rrrrMultijsrA)r-r8r+Z foobarbaz) rrr rr2rrrrAttributeErrorgetattrZfoo) rr?r@rAargZKlassrr5resultrrrtest_patch_spec_callable_classcs$  z+TestCallable.test_patch_spec_callable_classcCs4tt}|}|t|tt}|t|dSr )r rrr)rrr5rrrtest_create_autospecs   z!TestCallable.test_create_autospeccCs@ttdd}|t|||j|t|jdddS)NT)r5Zsomeargs)r rrrZwibbler2rrrrtest_create_autospec_instances    z*TestCallable.test_create_autospec_instanceN)rr&r'rrr r$r*r6r9r<r=rIrJrLrrrrr s     r __main__)ZunittestZunittest.test.testmock.supportrrrZ unittest.mockrrrrr r r ZTestCaser rmainrrrrs $