a  ze¨ã@snddlZGdd„deƒZGdd„deƒZGdd„dejƒZGdd „d eƒZGd d „d eƒZGd d „d eƒZdS)éNc@seZdZdd„Zdd„ZdS)Ú TestEqualitycCs,|jD] \}}| ||¡| ||¡qdS©N)Úeq_pairsZ assertEqual©ÚselfÚobj_1Úobj_2©r úI/opt/bitninja-python-dojo/embedded/lib/python3.9/unittest/test/support.pyÚtest_eqs zTestEquality.test_eqcCs,|jD] \}}| ||¡| ||¡qdSr)Úne_pairsZassertNotEqualrr r r Útest_nes zTestEquality.test_neN)Ú__name__Ú __module__Ú __qualname__r r r r r r rsrc@seZdZdd„ZdS)Ú TestHashingc Csä|jD]h\}}z&t|ƒt|ƒks2| d||f¡Wqtyl}z | d|||f¡WYd}~qd}~00q|jD]h\}}z&t|ƒt|ƒkr¢| d||f¡WqvtyÜ}z | d|||f¡WYd}~qvd}~00qvdS)Nz%r and %r do not hash equalzProblem hashing %r and %r: %sz#%s and %s hash equal, but shouldn'tzProblem hashing %s and %s: %s)rÚhashZfailÚ Exceptionr )rrrÚer r r Ú test_hashs,ÿ zTestHashing.test_hashN)rrrrr r r r rsrcs”eZdZ‡fdd„Z‡fdd„Z‡fdd„Z‡fdd„Z‡fd d „Z‡fd d „Z‡fd d„Z ‡fdd„Z ‡fdd„Z ‡fdd„Z ‡fdd„Z ‡ZS)Ú_BaseLoggingResultcs||_tƒ ¡dSr)Ú_eventsÚsuperÚ__init__)rÚlog©Ú __class__r r r)sz_BaseLoggingResult.__init__cs|j d¡tƒ |¡dS)NÚ startTest)rÚappendrr©rÚtestrr r r-s z_BaseLoggingResult.startTestcs|j d¡tƒ ¡dS)NÚ startTestRun)rrrr!©rrr r r!1s z_BaseLoggingResult.startTestRuncs|j d¡tƒ |¡dS)NÚstopTest)rrrr#rrr r r#5s z_BaseLoggingResult.stopTestcs|j d¡tƒ ¡dS)NÚ stopTestRun)rrrr$r"rr r r$9s z_BaseLoggingResult.stopTestRuncs|j d¡tƒj|ŽdS)NÚ addFailure)rrrr%©rÚargsrr r r%=s z_BaseLoggingResult.addFailurecs|j d¡tƒj|ŽdS)NÚ addSuccess)rrrr(r&rr r r(As z_BaseLoggingResult.addSuccesscs|j d¡tƒj|ŽdS)NÚaddError)rrrr)r&rr r r)Es z_BaseLoggingResult.addErrorcs|j d¡tƒj|ŽdS)NÚaddSkip)rrrr*r&rr r r*Is z_BaseLoggingResult.addSkipcs|j d¡tƒj|ŽdS)NÚaddExpectedFailure)rrrr+r&rr r r+Ms z%_BaseLoggingResult.addExpectedFailurecs|j d¡tƒj|ŽdS)NÚaddUnexpectedSuccess)rrrr,r&rr r r,Qs z'_BaseLoggingResult.addUnexpectedSuccess)rrrrrr!r#r$r%r(r)r*r+r,Ú __classcell__r r rr r(s          rc@seZdZedd„ƒZdS)ÚLegacyLoggingResultcCst‚dSr)ÚAttributeErrorr"r r r Ú addSubTest\szLegacyLoggingResult.addSubTestN)rrrÚpropertyr0r r r r r.Vsr.cseZdZ‡fdd„Z‡ZS)Ú LoggingResultcs6|dur|j d¡n |j d¡tƒ |||¡dS)NZaddSubTestSuccessZaddSubTestFailure)rrrr0)rr ZsubtestÚerrrr r r0fs zLoggingResult.addSubTest)rrrr0r-r r rr r2asr2c@sDeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dS)Ú#ResultWithNoStartTestRunStopTestRuncCs.g|_g|_d|_g|_g|_g|_d|_dS)NrF)ZfailuresÚerrorsZtestsRunZskippedZexpectedFailuresZunexpectedSuccessesZ shouldStopr"r r r rqsz,ResultWithNoStartTestRunStopTestRun.__init__cCsdSrr rr r r rzsz-ResultWithNoStartTestRunStopTestRun.startTestcCsdSrr rr r r r#}sz,ResultWithNoStartTestRunStopTestRun.stopTestcCsdSrr rr r r r)€sz,ResultWithNoStartTestRunStopTestRun.addErrorcCsdSrr rr r r r%ƒsz.ResultWithNoStartTestRunStopTestRun.addFailurecCsdSrr rr r r r(†sz.ResultWithNoStartTestRunStopTestRun.addSuccesscCsdS)NTr r"r r r Ú wasSuccessful‰sz1ResultWithNoStartTestRunStopTestRun.wasSuccessfulN) rrrrrr#r)r%r(r6r r r r r4ns r4) ZunittestÚobjectrrZ TestResultrr.r2r4r r r r Ús .