U ë üe/\ã @s^ddlmZmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddlm Z mZmZmZmZmZmZmZddlmZmZmZmZmZmZmZddlmZmZmZmZm Z m!Z!m"Z"ddlm#Z#m$Z$m%Z%m&Z&ddlm'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0ddlm1Z1m2Z2m3Z3m4Z4dd lm5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;mZ>dd l?m@Z@dd lAmBZBdd lCmDZDdd lEmFZFmGZGmHZHmIZIddlJmKZLmMZNmOZPmQZRddlJmSZTmUZVmWZXddlJmYZZm[Z\m]Z^ddlJm_Z`maZbmcZdmeZfddlJmgZhmiZje6rddlJmkZlz ddlmZmWnenk r<dZmYnXzeoWn"epk rhddlmoZoYnXeqZrer sd¡dZtdd„ZuGdd„de jvƒZvzGdd„deƒZwWn"exk rÌe y¡dZwYnXzGdd„dezeƒZ{Wn"exk re y¡dZ{YnXzGd d!„d!e|eƒZ}Wn"exk r@e y¡dZ}YnXzGd"d#„d#eƒZ~Wn(exk r~ZzeZ~W5dZ[XYnXzGd$d%„d%eƒZ€Wn(exk r¼ZzeZ€W5dZ[XYnXzGd&d'„d'eƒZWnexk rìeZYnXzGd(d)„d)eƒZ‚Wn(exk r*ZzeZ‚W5dZ[XYnXzed*d+eqd,ZƒWn"exk r`e y¡dZƒYnXzGd-d.„d.eƒZ„Wn"exk r˜e y¡dZ„YnXzGd/d0„d0eƒZ…Wn"exk rÐe y¡dZ…YnXzed1d2eqd,Z†Wn"exk re y¡dZ†YnXzed3d4ƒZ‡Wn"exk r8e y¡dZ‡YnXz$Gd5d6„d6eƒZˆGd7d8„d8eˆƒZ‰Wn"exk r€e y¡dZ‰YnXzGd9d:„d:eƒZŠWnexk r¬YnXddeIffd;d<„Z‹deIffd=d>„ZŒe7rdd?lmŽZŽmZmZm‘Z‘m’Z’m“Z“dd@l”mZe{e_{eŒe_Œe‹e_‹e5e=kr*ddAl•m–Z–GdBdC„dCe—ƒZ˜GdDdE„dEevƒZ™GdFdG„dGevƒZšGdHdI„dIevƒZ›GdJdK„dKevƒZœGdLdM„dMevƒZGdNdO„dOevƒZžGdPdQ„dQevƒZŸGdRdS„dSevƒZ GdTdU„dUe jvƒZ¡GdVdW„dWevƒZ¢GdXdY„dYevƒZ£GdZd[„d[evƒZ¤Gd\d]„d]evƒZ¥Gd^d_„d_evƒZ¦Gd`da„daevƒZ§Gdbdc„dcevƒZ¨ddZ©ddZªddZ«ddZ¬ddZ­ddZ®deZ¯deZ°dfZ±dfZ²ddZ³ddZ´ddZµddZ¶ddZ·ddZ¸dgZ¹dhZºddZ»diZ¼djZ½dkZ¾dlZ¿dmZÀGdndo„doevƒZÁdpdq„ZÂdrds„ZÃeqdtkrZe Ä¡ZÅdZÆzJe7ràeÅe_Åe jÍdvdwZÆejΠϡeÆjÊjÐD]\ZÑZÒeÓdxeÑeÒfƒqþW5e ÇeÅdu¡eÆrXe ÈeÉeÆjÊjËpFeÆjÊj̃rRdpTd¡XdS)yé)ÚdivisionÚprint_functionN)ÚEnumTypeÚEnumMetaÚEnumÚIntEnumÚStrEnumÚ LowerStrEnumÚ UpperStrEnumÚReprEnum)ÚAutoNumberEnumÚMultiValueEnumÚ OrderedEnumÚ UniqueEnumÚ AddValueEnumÚFlagÚIntFlag)Ú NamedTupleÚ TupleSizeÚ NamedConstantÚconstantÚNoAliasÚAddValueÚUnique)ÚSTRICTÚCONFORMÚEJECTÚKEEP) Ú_reduce_ex_by_nameÚuniqueÚskipÚ extend_enumÚautoÚenumÚ MultiValueÚmemberÚ nonmemberÚno_arg)Ú basestringÚ baseintegerÚunicodeÚ enum_property) ÚpyverÚPY2ÚPY3ÚPY2_6ÚPY3_3ÚPY3_4ÚPY3_5ÚPY3_6ÚPY3_7ÚPY3_11)Ú _high_bit)Ú OrderedDict)Ú timedelta)ÚdumpsÚloadsÚ PicklingErrorÚHIGHEST_PROTOCOL)Úor_Úand_ÚxorÚinv)ÚabsÚaddÚfloordiv)ÚlshiftÚrshiftÚmod)ÚmulÚnegÚposÚpow)ÚtruedivÚsub)Údiv)ÚanyÚ.éÿÿÿÿcCs2| t t¡¡| tjdttjtjBd¡|S)Nz doc/aenum.rst)ÚpackageZ optionflags)ZaddTestsÚdoctestZ DocTestSuiteÚaenumZ DocFileSuiteÚELLIPSISZNORMALIZE_WHITESPACE)ÚloaderÚtestsÚignore©rXú8/opt/hc_python/lib/python3.8/site-packages/aenum/test.pyÚ load_tests-s ýrZcseZdZ‡fdd„Z‡ZS)ÚTestCasecs6t|ddƒ}|dkr t|dƒ|_tt|ƒj||ŽdS)NÚassertRaisesRegexZassertRaisesRegexp)Úgetattrr\Úsuperr[Ú__init__)ÚselfÚargsÚkwdsÚregex©Ú __class__rXrYr_8s  zTestCase.__init__)Ú__name__Ú __module__Ú __qualname__r_Ú __classcell__rXrXrdrYr[6sr[c@seZdZdZdZdZdS)ÚStoogeséééN©rfrgrhÚLARRYÚCURLYÚMOErXrXrXrYrjAsrjrkc@seZdZdZdZdZdS)Ú IntStoogesrkrlrmNrnrXrXrXrYrrIsrrc@seZdZdZdZdZdS)Ú FloatStoogesg= ×£p=ö?gÃõ(\Â@gÆR$_ $ @NrnrXrXrXrYrsQsrsc@s eZdZdZdZdZdZdZdS)Ú FlagStoogesrkrléééN©rfrgrhrorprqÚPMASKÚCMASKrXrXrXrYrtYs rtc@s$eZdZdZdZdZdZdZdZdS)ÚFlagStoogesWithZerorrkrlrurvrwN© rfrgrhÚNOFLAGrorprqryrzrXrXrXrYr{cs r{c@s eZdZdZdZdZdZdZdS)ÚIntFlagStoogesrkrlrurvrwNrxrXrXrXrYr~ns r~c@s$eZdZdZdZdZdZdZdZdS)ÚIntFlagStoogesWithZerorrkrlrurvrwNr|rXrXrXrYrxs rÚLifeFormzbranch genus species©Úmodulec@seZdZdZdZdZdS)Ú DeathFormrrkrlN)rfrgrhÚcolorZrigidityZodorrXrXrXrYrƒˆsrƒc@seZdZdZdZdS)ÚNameúGuido van Rossumz Barry WarsawN)rfrgrhÚBDFLZFLUFLrXrXrXrYr…‘sr…ÚQuestionzwho what when where whyÚAnswerzhim this then there becausec@seZdZdd„ZdS)ÚWhatsItcCs|dS©NrrX©r`rXrXrYÚwhat£sz WhatsIt.whatN)rfrgrhrrXrXrXrYrŠ¢srŠc@seZdZdZdZdS)ÚThatsItrrkN)rfrgrhÚblahZblehrXrXrXrYrŽ¥srŽc@seZdZdZdZdZdS)ÚFruitrkrlrmN)rfrgrhÚtomatoÚbananaZcherryrXrXrXrYr­src Cs°|\}}g}t||dƒD]z}z:|dkr@|tt||dƒ|ƒn|tt||dƒ|ƒWqtk r’t ¡dd…\}}| d||f¡YqXq|r¬tdd |¡ƒ‚dS)Nrk©Úprotocolz%2d: %súFailed with protocols: %sú, ) Úranger:r9Ú ExceptionÚsysÚexc_infoÚappendÚ ValueErrorÚjoin) Ú assertionÚsourceÚtargetr”ÚstartÚstopÚfailuresÚexcÚtbrXrXrYÚtest_pickle_dump_load´sr¦c Csˆ|\}}g}t||dƒD]R}z||t||dWqtk rjt ¡d}| d||jj|f¡YqXq|r„tdd  |¡ƒ‚dS)Nrkr“z %d: %s %sr•r–) r—r9r˜r™ršr›rerfrœr)ržÚ exceptionÚobjr”r¡r¢r£r¤rXrXrYÚtest_pickle_exceptionÃs  r©)Ú TestEnumV3Ú TestOrderV3ÚTestNamedTupleV3ÚTestStackoverflowAnswersV3Ú TestIssuesV3ÚTestExtendEnumV3)Útest_v3)Ú TestEnumV37c@seZdZddd„Zdd„ZdS)Ú classpropertyNcCs2||_||_||_|dkr(|dk r(|j}||_dS©N)ÚfgetÚfsetÚfdelÚ__doc__)r`r´rµr¶ÚdocrXrXrYr_Þs zclassproperty.__init__cCs | |¡Sr³)r´)r`ÚinstanceÚ ownerclassrXrXrYÚ__get__æszclassproperty.__get__)NNNN)rfrgrhr_r»rXrXrXrYr²Üs r²c@speZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„ZdS)Ú TestOrderz- Test _order_ extra/missing members. cCsGdd„dtƒ}dS)Nc@seZdZdZdZdZdZdS)z*TestOrder.test_same_members..Colorúred green bluerkrlrmN©rfrgrhÚ_order_ÚredÚgreenÚbluerXrXrXrYÚColorñsrér©r`rÃrXrXrYÚtest_same_membersðszTestOrder.test_same_memberscCsGdd„dtƒ}dS)Nc@s eZdZdZdZdZdZeZdS)z7TestOrder.test_same_members_with_aliases..Colorr½rkrlrmN©rfrgrhr¿rÀrÁrÂÚverderXrXrXrYrÃøs rÃrÄrÅrXrXrYÚtest_same_members_with_aliases÷sz(TestOrder.test_same_members_with_aliasesc Cs,| td¡Gdd„dtƒ}W5QRXdS)Nú#member order does not match _order_c@seZdZdZdZdZdZdS)z5TestOrder.test_order_has_extra_members..Colorúred green blue purplerkrlrmNr¾rXrXrXrYrÃsrér\Ú TypeErrorrrÅrXrXrYÚtest_order_has_extra_membersÿsz&TestOrder.test_order_has_extra_membersc Cs,| td¡Gdd„dtƒ}W5QRXdS)NrÊc@s eZdZdZdZdZdZeZdS)zBTestOrder.test_order_has_extra_members_with_aliases..ColorrËrkrlrmNrÇrXrXrXrYrà s rÃrÌrÅrXrXrYÚ)test_order_has_extra_members_with_aliasessz3TestOrder.test_order_has_extra_members_with_aliasesc Cs,| td¡Gdd„dtƒ}W5QRXdS)NrÊc@s eZdZdZdZdZdZdZdS)z4TestOrder.test_enum_has_extra_members..Colorr½rkrlrmruN©rfrgrhr¿rÀrÁrÂÚpurplerXrXrXrYrÃs rÃrÌrÅrXrXrYÚtest_enum_has_extra_memberssz%TestOrder.test_enum_has_extra_membersc Cs,| td¡Gdd„dtƒ}W5QRXdS)NrÊc@s$eZdZdZdZdZdZdZeZdS)zATestOrder.test_enum_has_extra_members_with_aliases..Colorr½rkrlrmruN© rfrgrhr¿rÀrÁrÂrÑrÈrXrXrXrYrÃs rÃrÌrÅrXrXrYÚ(test_enum_has_extra_members_with_aliasessz2TestOrder.test_enum_has_extra_members_with_aliasescCsGdd„dtƒ}dS)Nc@seZdZdZdZdZdZdS)z/TestOrder.test_same_members_flag..Colorr½rkrlruNr¾rXrXrXrYrÃ$srérrÅrXrXrYÚtest_same_members_flag#sz TestOrder.test_same_members_flagcCsGdd„dtƒ}dS)Nc@s eZdZdZdZdZdZeZdS)z.Colorr½rkrlruNrÇrXrXrXrYrÃ+s rÃrÕrÅrXrXrYÚ#test_same_members_with_aliases_flag*sz-TestOrder.test_same_members_with_aliases_flagc Cs,| td¡Gdd„dtƒ}W5QRXdS)NrÊc@seZdZdZdZdZdZdS)z:TestOrder.test_order_has_extra_members_flag..ColorrËrkrlruNr¾rXrXrXrYrÃ4srér\rÍrrÅrXrXrYÚ!test_order_has_extra_members_flag2sz+TestOrder.test_order_has_extra_members_flagc Cs,| td¡Gdd„dtƒ}W5QRXdS)NrÊc@s eZdZdZdZdZdZeZdS)zGTestOrder.test_order_has_extra_members_with_aliases_flag..ColorrËrkrlruNrÇrXrXrXrYrÃ<s rÃrØrÅrXrXrYÚ.test_order_has_extra_members_with_aliases_flag:sz8TestOrder.test_order_has_extra_members_with_aliases_flagc Cs,| td¡Gdd„dtƒ}W5QRXdS)NrÊc@s eZdZdZdZdZdZdZdS)z9TestOrder.test_enum_has_extra_members_flag..Colorr½rkrlruéNrÐrXrXrXrYrÃEs rÃrØrÅrXrXrYÚ test_enum_has_extra_members_flagCsz*TestOrder.test_enum_has_extra_members_flagc Cs,| td¡Gdd„dtƒ}W5QRXdS)NrÊc@s$eZdZdZdZdZdZdZeZdS)zFTestOrder.test_enum_has_extra_members_with_aliases_flag..Colorr½rkrlrurÛNrÓrXrXrXrYrÃNs rÃrØrÅrXrXrYÚ-test_enum_has_extra_members_with_aliases_flagLsz7TestOrder.test_enum_has_extra_members_with_aliases_flagN)rfrgrhr·rÆrÉrÎrÏrÒrÔrÖr×rÙrÚrÜrÝrXrXrXrYr¼ës     r¼c@sDeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dS)Ú TestAutoValuecCs€Gdd„dtƒ}| |jjd¡Gdd„dtƒ}| |jd¡Gdd„dtƒ}| |jjd¡Gd d „d tƒ}| |jd¡dS) Nc@s"eZdZdZeƒZeƒZeƒZdS)z)TestAutoValue.test_bare..BareEnumú ONE TWO THREEN©rfrgrhr¿r"ÚONEÚTWOÚTHREErXrXrXrYÚBareEnum[srärmc@s"eZdZdZeƒZeƒZeƒZdS)z,TestAutoValue.test_bare..BareIntEnumrßNràrXrXrXrYÚ BareIntEnumbsråc@s"eZdZdZeƒZeƒZeƒZdS)z)TestAutoValue.test_bare..BareFlagrßNràrXrXrXrYÚBareFlagisræruc@s"eZdZdZeƒZeƒZeƒZdS)z,TestAutoValue.test_bare..BareIntFlagrßNràrXrXrXrYÚ BareIntFlagpsrç)rÚ assertEqualrãÚvaluerrr)r`rärårærçrXrXrYÚ test_bareYszTestAutoValue.test_barecCsðGdd„dtƒ}| |jjd¡| |jjd¡Gdd„dtƒ}| |jjd¡| |jjd¡Gdd„dtƒ}| |jd¡| |jjd¡Gd d „d tƒ}| |jjd ¡| |jjd¡Gd d „d tƒ}| |jd ¡| |jjd¡dS)Nc@s eZdZdZdZdZdZdZdS)z9TestAutoValue.test_init_only_final..InitEnumValueúvalue descriptionrßúthe loneliest numberúthe number with youú a triangleN©rfrgrhÚ_init_r¿rárârãrXrXrXrYÚ InitEnumValueys rñrmrîc@s eZdZdZdZdZdZdZdS)z4TestAutoValue.test_init_only_final..InitEnumrërßrìrírîNrïrXrXrXrYÚInitEnum‚s ròc@s eZdZdZdZdZdZdZdS)z7TestAutoValue.test_init_only_final..InitIntEnumrërßrìrírîNrïrXrXrXrYÚ InitIntEnum‹s róc@s eZdZdZdZdZdZdZdS)z4TestAutoValue.test_init_only_final..InitFlagrërßrìrírîNrïrXrXrXrYÚInitFlag”s rôruc@s eZdZdZdZdZdZdZdS)z7TestAutoValue.test_init_only_final..InitIntFlagrërßrìrírîNrïrXrXrXrYÚ InitIntFlags rõ)rrèrãréÚ descriptionrrr)r`rñròrórôrõrXrXrYÚtest_init_only_finalwsz"TestAutoValue.test_init_only_finalcCs$Gdd„dtƒ}Gdd„d|ƒ}| |jjd¡| |jjd¡Gdd„dtƒ}Gd d„d|ƒ}| |jjd¡| |jjd¡Gd d „d t|ƒ}| |jd¡| |jjd¡Gd d „d tƒ}Gdd„d|ƒ}| |jjd¡| |jjd¡Gdd„dt|ƒ}| |jd¡| |jjd¡dS)Nc@seZdZdZdS)z=TestAutoValue.test_init_only_inherit..InitInheritEnumrëN©rfrgrhrðrXrXrXrYÚInitInheritEnum¨srùc@seZdZdZdZdZdZdS©z6TestAutoValue.test_init_only_inherit..InitEnumrßrìrírîN©rfrgrhr¿rárârãrXrXrXrYrò«sròrmrîc@seZdZdZdS)zBTestAutoValue.test_init_only_inherit..InitInheritValueEnumrëNrørXrXrXrYÚInitInheritValueEnum´srüc@seZdZdZdZdZdZdSrúrûrXrXrXrYrò·sc@seZdZdZdZdZdZdS)z9TestAutoValue.test_init_only_inherit..InitIntEnumrßrìrírîNrûrXrXrXrYró¿sróc@seZdZdZdS)zBTestAutoValue.test_init_only_inherit..InitInheritValueFlagrëNrørXrXrXrYÚInitInheritValueFlagÇsrýc@seZdZdZdZdZdZdS)z6TestAutoValue.test_init_only_inherit..InitFlagrßrìrírîNrûrXrXrXrYrôÊsrôruc@seZdZdZdZdZdZdS)z9TestAutoValue.test_init_only_inherit..InitIntFlagrßrìrírîNrûrXrXrXrYrõÒsrõ)rrèrãréröÚintr)r`rùròrürórýrôrõrXrXrYÚtest_init_only_inherit¦s$z$TestAutoValue.test_init_only_inheritcCsdGdd„dtƒ}| |jjd¡| |jjd¡Gdd„dtƒ}| |jd¡| |jjd¡Gdd „d tƒ}| |jjd ¡| |jjd ¡Gd d „d tƒ}| |jd ¡| |jjd¡Gdd„dt tƒ}| |j jd¡| |j jd ¡| |j j d¡| |jjd¡Gdd„dt tƒ}| |j jd ¡| |j jd¡| |j j d¡| |jjd¡dS)Nc@s*eZdZdZdd„ZeƒZeƒZeƒZdS)z7TestAutoValue.test_new_only_final..NewFinalEnumrßcSst |¡}||_d|_|S)NÚNFE1©ÚobjectÚ__new__Ú_value_Úproof©Úclsrér%rXrXrYrÞs z?TestAutoValue.test_new_only_final..NewFinalEnum.__new__N© rfrgrhr¿rr"rárârãrXrXrXrYÚ NewFinalEnumÜs r rmrc@s*eZdZdZdd„ZeƒZeƒZeƒZdS)z:TestAutoValue.test_new_only_final..NewFinalIntEnumrßcSst ||¡}||_d|_|S)NÚNFE2©rþrrrrrXrXrYrës zBTestAutoValue.test_new_only_final..NewFinalIntEnum.__new__NrrXrXrXrYÚNewFinalIntEnumés r r c@s*eZdZdZdd„ZeƒZeƒZeƒZdS)z7TestAutoValue.test_new_only_final..NewFinalFlagrßcSst |¡}||_d|_|S)NÚNFE3rrrXrXrYrøs z?TestAutoValue.test_new_only_final..NewFinalFlag.__new__NrrXrXrXrYÚ NewFinalFlagös rrur c@s*eZdZdZdd„ZeƒZeƒZeƒZdS)z:TestAutoValue.test_new_only_final..NewFinalIntFlagrßcSst ||¡}||_d|_|S)NÚNFE4r rrXrXrYrs zBTestAutoValue.test_new_only_final..NewFinalIntFlag.__new__NrrXrXrXrYÚNewFinalIntFlags rrc@s.eZdZdZdd„ZejZdZdZdZ dZ dS) z:TestAutoValue.test_new_only_final..NewFinalStrEnumú AllReset Bright FG_Cyan BG_BlackcSs*d|}t ||¡}||_||_||_|S©Nz[%sm©ÚstrrrÚcoderö©rrérröÚ str_valuer¨rXrXrYrs  zBTestAutoValue.test_new_only_final..NewFinalStrEnum.__new__©Ú0z!reset all (colors and brightness)©Ú1úbright lights!©Ú36Úcyan©Ú40ÚblackN© rfrgrhr¿rrÚ__str__ÚAllResetÚBrightÚFG_CyanÚBG_BlackrXrXrXrYÚNewFinalStrEnumsr)rrc@s.eZdZdZdd„ZejZdZdZdZ dZ dS) z:TestAutoValue.test_new_only_final..NewFinalStrFlagrcSs*d|}t ||¡}||_||_||_|SrrrrXrXrYr+s  zBTestAutoValue.test_new_only_final..NewFinalStrFlag.__new__rrrr Nr#rXrXrXrYÚNewFinalStrFlag'sr*rÛ)rrèrãrérârrrrrr'r(r%rr&rö)r`r r rrr)r*rXrXrYÚtest_new_only_finalÚs,    z!TestAutoValue.test_new_only_finalcCsäGdd„dtƒ}Gdd„d|ƒ}| |jjd¡| |jjd¡Gdd„dt|ƒ}| |jd¡| |jjd¡Gd d „d tƒ}Gd d „d |ƒ}| |jjd ¡| |jjd¡Gdd„dt|ƒ}| |jd ¡| |jjd¡dS)Nc@seZdZdd„ZdS)z=TestAutoValue.test_new_only_inherited..NewInheritEnumcSs:|jtkrt ||d¡}n t |¡}|d|_d|_|S©NrlÚNIE©Ú _member_type_rþrrrrrrXrXrYrAs    zETestAutoValue.test_new_only_inherited..NewInheritEnum.__new__N©rfrgrhrrXrXrXrYÚNewInheritEnum@sr1c@s"eZdZdZeƒZeƒZeƒZdS)z;TestAutoValue.test_new_only_inherited..NewFinalEnumrßNràrXrXrXrYr Jsr ér-c@s"eZdZdZeƒZeƒZeƒZdS)z>TestAutoValue.test_new_only_inherited..NewFinalIntEnumrßNràrXrXrXrYr Rsr c@seZdZdd„ZdS)z=TestAutoValue.test_new_only_inherited..NewInheritFlagcSs:|jtkrt ||d¡}n t |¡}|d|_d|_|Sr,r.rrXrXrYr[s    zETestAutoValue.test_new_only_inherited..NewInheritFlag.__new__Nr0rXrXrXrYÚNewInheritFlagZsr3c@s"eZdZdZeƒZeƒZeƒZdS)z;TestAutoValue.test_new_only_inherited..NewFinalFlagrßNràrXrXrXrYrdsrrÛc@s"eZdZdZeƒZeƒZeƒZdS)z>TestAutoValue.test_new_only_inherited..NewFinalIntFlagrßNràrXrXrXrYrlsr)rrèrãrérârrþr)r`r1r r r3rrrXrXrYÚtest_new_only_inherited>s  z%TestAutoValue.test_new_only_inheritedcCsGdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡Gdd„dtƒ}| |jd¡| |jjd¡| |jjd¡Gd d „d tƒ}| |jjd ¡| |jjd¡| |jjd ¡Gd d„dt ƒ}| |jd ¡| |jjd¡| |jjd¡dS)Nc@s(eZdZdZdZdd„ZdZdZdZdS) z5TestAutoValue.test_init_new_only..InitNewEnumrërßcWst |¡}||_d|_|S)NÚINE1r©rrérar%rXrXrYrys z=TestAutoValue.test_init_new_only..InitNewEnum.__new__rìrírîN© rfrgrhrðr¿rrárârãrXrXrXrYÚ InitNewEnumvs r8rmrîr5c@s(eZdZdZdZdd„ZdZdZdZdS) z8TestAutoValue.test_init_new_only..InitNewIntEnumrërßcWst ||¡}||_d|_|S)NÚINE2r r6rXrXrYrˆs z@TestAutoValue.test_init_new_only..InitNewIntEnum.__new__rìrírîNr7rXrXrXrYÚInitNewIntEnum…s r:r9c@s(eZdZdZdZdd„ZdZdZdZdS) z5TestAutoValue.test_init_new_only..InitNewFlagrërßcWst |¡}||_d|_|S)NÚINE3rr6rXrXrYr—s z=TestAutoValue.test_init_new_only..InitNewFlag.__new__rìrírîNr7rXrXrXrYÚ InitNewFlag”s r<rur;c@s(eZdZdZdZdd„ZdZdZdZdS) z8TestAutoValue.test_init_new_only..InitNewIntFlagrërßcWst ||¡}||_d|_|S)NÚINE4r r6rXrXrYr¦s z@TestAutoValue.test_init_new_only..InitNewIntFlag.__new__rìrírîNr7rXrXrXrYÚInitNewIntFlag£s r>r=) rrèrãrérörârrrr)r`r8r:r<r>rXrXrYÚtest_init_new_onlyts     z TestAutoValue.test_init_new_onlyc CsDGdd„dtƒ}Gdd„d|ƒ}| |jjd¡| |jjd¡| |jjd¡Gdd „d tƒ}Gd d „d t|ƒ}| |jd¡| |jjd¡| |jjd¡Gd d „d tƒ}Gdd„d|ƒ}| |jjd¡| |jjd¡| |jjd¡Gdd„dttƒ}Gdd„d|ƒ}| |jd¡| |jjd¡| |jjd¡dS)Nc@seZdZdZdd„ZdS)z4TestAutoValue.test_init_new_inherit..InitNewrëcWst |¡}||_d|_|S©NÚINrr6rXrXrYr¶s z.InitNew.__new__N©rfrgrhrðrrXrXrXrYÚInitNew´srCc@seZdZdZdZdZdZdS)z8TestAutoValue.test_init_new_inherit..InitNewEnumrßrìrírîNrûrXrXrXrYr8¼sr8rmrîrAc@seZdZdZdd„ZdS)z7TestAutoValue.test_init_new_inherit..InitNewIntrëcWst ||¡}||_d|_|Sr@r r6rXrXrYrÇs z?TestAutoValue.test_init_new_inherit..InitNewInt.__new__NrBrXrXrXrYÚ InitNewIntÅsrDc@seZdZdZdZdZdZdS)z;TestAutoValue.test_init_new_inherit..InitNewIntEnumrßrìrírîNrûrXrXrXrYr:Ísr:c@seZdZdZdd„ZdS)z.InitNewFlagBaserëcWst |¡}||_d|_|Sr@rr6rXrXrYrØs zDTestAutoValue.test_init_new_inherit..InitNewFlagBase.__new__NrBrXrXrXrYÚInitNewFlagBaseÖsrEc@seZdZdZdZdZdZdS)z8TestAutoValue.test_init_new_inherit..InitNewFlagrßrìrírîNrûrXrXrXrYr<Þsr<ruc@seZdZdZdd„ZdS)z?TestAutoValue.test_init_new_inherit..InitNewIntFlagBaserëcWst ||¡}||_d|_|Sr@r r6rXrXrYrés zGTestAutoValue.test_init_new_inherit..InitNewIntFlagBase.__new__NrBrXrXrXrYÚInitNewIntFlagBaseçsrFc@seZdZdZdZdZdZdS)z;TestAutoValue.test_init_new_inherit..InitNewIntFlagrßrìrírîNrûrXrXrXrYr>ïsr>) rrèrãrérörârrþr) r`rCr8rDr:rEr<rFr>rXrXrYÚtest_init_new_inherit²s(z#TestAutoValue.test_init_new_inheritN) rfrgrhrêr÷rÿr+r4r?rGrXrXrXrYrÞWs/4d6>rÞc@s4eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd S) Ú TestHelperscCsNGdd„dƒ}dD]6}|ƒ}| t |¡¡t||dƒ| t |¡¡qdS)Nc@s eZdZdS)z+TestHelpers.test_is_descriptor..fooN©rfrgrhrXrXrXrYÚfooýsrJ)r»Ú__set__Ú __delete__rk)Ú assertFalserSZ is_descriptorÚsetattrÚ assertTrue)r`rJÚattrr¨rXrXrYÚtest_is_descriptorüs  zTestHelpers.test_is_descriptorcCs8dD]}| t |¡¡qdD]}| t |¡¡qdS)N)Ú_a_Z_aa_) ÚaÚa_Ú_aÚ__aÚa__Ú__a__Ú_a__Ú__a_Ú_Ú__Ú___Ú____Ú_____)rOrSÚ is_sunderrM©r`ÚsrXrXrYÚtest_is_sunderszTestHelpers.test_is_sundercCs8dD]}| t |¡¡qdD]}| t |¡¡qdS)N)rXZ__aa__) rSrTrUrVrWrRrYrZr[r\r]r^r_)rOrSZ is_dunderrMrarXrXrYÚtest_is_dunder szTestHelpers.test_is_dundercsd‡fdd„ }dttdƒfdttdƒfdtddfdtddfd td d fd td d fdtd dfdtddfdtdd fdt dfdt dfdt ddfdt ddfdt ddfdtdd fdtdd fdtdfdtddfdtddffD] }||ŽqÎtrî|dtddƒtƒ}d}t||ƒ}d|_ˆ |jdd¡dS)Nc s¸|dkr %r != %rzforward: %r %s %r -> %r != %rzreversed: %r %s %r -> %r != %r)r"rérèrf)ÚfirstÚopÚfinalÚsecondÚleftréÚrightrŒrXrYÚtesters* ÿ  ÿ  ÿz%TestHelpers.test_auto..testerrkéýÿÿÿrmrlérvé1çrÇqÇ@é r2éééûÿÿÿéüÿÿÿé éé éøÿÿÿrSÚabÚbÚaaaé Úeggsú I see 17 %s!)N)Ú_abs_rAÚ_add_Ú _floordiv_Ú _truediv_Ú_mod_Ú_lshift_Ú_rshift_Ú_mul_Ú_neg_Ú_pos_Ú_pow_Ú_sub_Ú_or_Ú_xor_Ú_and_Ú_inv_r-Ú_div_r"rérè)r`rlrarjrkrérXrŒrYÚ test_autos:                í  zTestHelpers.test_autocsRg‰d‡fdd„ }dttdƒfdttdƒfdtddfdtddfd td d fd td d fdtd dfdtddfdtdd fdt dfdt dfdt ddfdt ddfdt ddfdtdd fdtdd fdtdfdtddfdtddffD] }||ŽqÒtrò|dtddƒtdƒ}d}t||ƒ}|ddkr$ˆ d|¡ˆrNtƒˆD]}t|ƒq4| d¡dS)Nc s¶|dkrBt|ƒ}t||ƒƒ}|j|kr²ˆ d|j||j|f¡npt|ƒ}|}|||ƒ}||krzˆ d||j|||f¡|}t|ƒ}|||ƒ}||kr²ˆ d||j|||f¡dSre)rrér›rf) rfrgrhriÚprimaryZ secondaryrjrkré©ÚerrorsrXrYrlKs*  ÿ ÿ ÿz)TestHelpers.test_constant..testerrkrmrmrlrnrvrorprqr2rrrsrtrurvrwrxryrSrzr{r|r}rr~z'I see 17 eggs!' != %rF)N)r€rArr‚rƒr„r…r†r‡rˆr‰rŠr‹rŒrrŽrr-rrr›ÚprintrO)r`rlrarjrkréÚerrorrXr“rYÚ test_constantIsF                í   zTestHelpers.test_constantN)rfrgrhrQrcrdr‘r—rXrXrXrYrHùs  5rHc@seZdZdd„Zdd„ZdS)Ú TestEnumTypecCsÂGdd„dtƒ}Gdd„d|tƒ}| tdt|dd¡| tdt|d¡| td t|jdd¡| td t|jd¡| |jj d ¡| |jj d ¡| |j d d g¡t|d dƒ| |j d¡dS)Nc@seZdZedd„ƒZdS)z+TestEnumType.test_immutability..HahcSsdd„|DƒS)NcSsg|] }|j‘qSrX©ré©Ú.0ÚmrXrXrYÚ ŽszJTestEnumType.test_immutability..Hah.all_values..rX©rrXrXrYÚ all_valuesŒsz6TestEnumType.test_immutability..Hah.all_valuesN)rfrgrhr²rŸrXrXrXrYÚHah‹sr c@seZdZdZdZdS)z+TestEnumType.test_immutability..HuhrkrlN©rfrgrhÚoneÚtworXrXrXrYÚHuhsr¤zcannot rebind propertyréÚboomzcannot delete propertyzcannot set attributezcannot delete attributerkrlrŸéc) rrr\ÚAttributeErrorrNÚdelattrr¢r£rèrérŸ)r`r r¤rXrXrYÚtest_immutabilityŠs zTestEnumType.test_immutabilitycs€Gdd„dtƒ}Gdd„d|tƒ‰| tˆƒd¡| tˆƒˆjˆjˆjˆjˆj g¡|  t d‡fdd„¡| ˆjj d ¡dS) Nc@s eZdZdd„Zedd„ƒZdS)z1TestEnumType.test_enum_shadow_base..hohumcSs |jdS)úcyanize a colorrr™rŒrXrXrYržsz6TestEnumType.test_enum_shadow_base..hohum.cyancSs d|jS)Nzazure ©ÚnamerŒrXrXrYÚazure¡sz7TestEnumType.test_enum_shadow_base..hohum.azureN)rfrgrhrÚpropertyr­rXrXrXrYÚhohumsr¯c@s eZdZdZdZdZdZdZdS)z1TestEnumType.test_enum_shadow_base..ColorrkrlrmrurvN)rfrgrhrÀrÁrÂrr­rXrXrXrYräs rÃrvzno attribute .cyan.csˆjjSr³)rÂrrX©rÃrXrYÚ¬óz4TestEnumType.test_enum_shadow_base..z azure red) rrrèÚlenÚlistrÀrÁrÂrr­r\r§)r`r¯rXr°rYÚtest_enum_shadow_baseœs $z"TestEnumType.test_enum_shadow_baseN)rfrgrhr©rµrXrXrXrYr˜ˆsr˜c@s eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Zd5d6„Zd7d8„Zd9d:„Zd;d<„Z d=d>„Z!d?d@„Z"dAdB„Z#dCdD„Z$dEdF„Z%dGdH„Z&dIdJ„Z'dKdL„Z(dMdN„Z)dOdP„Z*dQdR„Z+dSdT„Z,dUdV„Z-dWdX„Z.dYdZ„Z/d[d\„Z0d]d^„Z1d_d`„Z2dadb„Z3dcdd„Z4dedf„Z5dgdh„Z6didj„Z7dkdl„Z8dmdn„Z9dodp„Z:dqdr„Z;dsdt„Zdydz„Z?d{d|„Z@d}d~„ZAdd€„ZBdd‚„ZCdƒd„„ZDd…d†„ZEd‡dˆ„ZFd‰dŠ„ZGd‹dŒ„ZHddŽ„ZIdd„ZJd‘d’„ZKd“d”„ZLd•d–„ZMd—d˜„ZNd™dš„ZOd›dœ„ZPddž„ZQdŸd „ZRd¡d¢„ZSd£d¤„ZTd¥d¦„ZUd§d¨„ZVd©dª„ZWd«d¬„ZXd­d®„ZYd¯d°„ZZd±d²„Z[d³d´„Z\dµd¶„Z]d·d¸„Z^d¹dº„Z_d»d¼„Z`d½d¾„Zad¿dÀ„ZbdÁd„ZcdÃdÄ„ZddÅdÆ„ZedÇdÈ„ZfdÉdÊ„ZgdËdÌ„ZhdÍd΄ZidÏdЄZjdÑdÒ„ZkdÓdÔ„ZldÕdÖ„Zmd×dØ„ZndÙZodÚZpdÛZqdÜdÝ„ZrdÞdß„Zsdàdá„Ztdâdã„Zudädå„Zvdædç„Zwdèdé„Zxdêdë„Zydìdí„Zzdîdï„Z{dðdñ„Z|dòdó„Z}dôdõ„Z~död÷„Zdødù„Z€dúdû„Zdüdý„Z‚dþdÿ„Zƒdd„Z„dd„Z…dd„Z†dd„Z‡dd „Zˆd d „Z‰d d „ZŠdd„Z‹dd„ZŒdd„Zdd„ZŽdd„Zdd„Zdd„Z‘dd„Z’dd„Z“d d!„Z”d"d#„Z•d$d%„Z–d&d'„Z—d(d)„Z˜d*d+„Z™d,d-„Zšd.d/„Z›d0d1„Zœd2d3„Zd4d5„Zžd6d7„ZŸd8d9„Z d:d;„Z¡d<d=„Z¢d>d?„Z£d@dA„Z¤e¥r®dBdC„Z¦dDdE„Z§dFdG„Z¨dHdI„Z©dJdK„ZªdLdM„Z«dNdO„Z¬dPdQ„Z­dRdS„Z®dTdQ„Z­dUdV„Z¯dWS(XÚTestEnumc CsðGdd„dtƒ}||_Gdd„dttƒ}||_Gdd„dtƒ}||_Gdd„dttƒ}||_d d l m }Gd d „d |tƒ}||_ Gd d„dttƒ}||_ Gdd„dt tƒ}||_Gdd„dttƒ} | |_d d l m }Gdd„d|tƒ} | |_dS)Nc@seZdZdZdZdZdZdS)zTestEnum.setUp..SeasonrkrlrmruN)rfrgrhÚSPRINGÚSUMMERÚAUTUMNÚWINTERrXrXrXrYÚSeason³sr»c@seZdZdZdZdeZdS)z%TestEnum.setUp..ReprKonstantsçB‡ ¿@çJØMû! @rlN©rfrgrhÚEÚPIÚTAUrXrXrXrYÚ ReprKonstantsºsrÂc@s eZdZdZdZdZdZdZdS)z"TestEnum.setUp..ReprGradesrvrurmrlrN©rfrgrhÚAÚBÚCÚDÚFrXrXrXrYÚ ReprGradesÀs rÉc@seZdZdZdZdZdZdS)z'TestEnum.setUp..ReprDirectionalÚeastÚwestÚnorthÚsouthN©rfrgrhÚEASTÚWESTÚNORTHÚSOUTHrXrXrXrYÚReprDirectionalÈsrÓr)Údatec@seZdZdZdZdS)z#TestEnum.setUp..ReprHoliday©éÝrkrk©rÖrmrwN©rfrgrhZNEW_YEARÚ IDES_OF_MARCHrXrXrXrYÚ ReprHolidayÐsrÚc@seZdZdZdZdeZdS)z!TestEnum.setUp..Konstantsr¼r½rlNr¾rXrXrXrYÚ KonstantsÕsrÛc@s eZdZdZdZdZdZdZdS)zTestEnum.setUp..GradesrvrurmrlrNrÃrXrXrXrYÚGradesÛs rÜc@seZdZdZdZdZdZdS)z#TestEnum.setUp..DirectionalrÊrËrÌrÍNrÎrXrXrXrYÚ DirectionalãsrÝc@seZdZdZdZdS)zTestEnum.setUp..HolidayrÕr×NrØrXrXrXrYÚHolidayësrÞ)rr»Úfloatr rÂrrÉrrÓÚdatetimerÔrÚrÛrþrÜrÝrÞ) r`r»rÂrÉrÓrÔrÚrÛrÜrÝrÞrXrXrYÚsetUp²s(  zTestEnum.setUpcsxGdd„dtƒ‰G‡fdd„dtƒ}| t|ƒ|jg¡| |jjd¡d|j_| |jjd¡| |jjdd¡dS)Nc@s*eZdZdZddd„Zdd„Zdd„ZdS) z*TestEnum.test_set_name..DescriptorNcSs|dkr |S|j|jSdSr³©Ú__dict__r¬©r`r¹Z owner_classrXrXrYr»ósz2TestEnum.test_set_name..Descriptor.__get__cSs||j|j<dSr³râ©r`r¹rérXrXrYrKøsz2TestEnum.test_set_name..Descriptor.__set__cSs ||_dSr³r«©r`Úownerr¬rXrXrYÚ __set_name__úsz7TestEnum.test_set_name..Descriptor.__set_name__)N©rfrgrhr¬r»rKrèrXrXrXrYÚ Descriptorñs rêcseZdZdZ”ƒZdS)z&TestEnum.test_set_name..AnEnumr¢N©rfrgrhrár£rX©rêrXrYÚAnEnumýsrír£Úthree©rrrèr´rár£r¬rã©r`rírXrìrYÚ test_set_nameðs zTestEnum.test_set_namecCsdGdd„dtƒ}| t|ƒd¡| |jd¡| t|jtƒ¡| |jd¡| t|jtƒ¡dS)Nc@seZdZdZdZdS)z,TestEnum.test_private_names..PrivateÚRadarÚHoolihanN©rfrgrhÚ_Private__corporalÚ_Private__major_rXrXrXrYÚPrivatesr÷rròró©rrèr³rõrMÚ isinstancerö©r`r÷rXrXrYÚtest_private_namess zTestEnum.test_private_namescCs’Gdd„dtƒ}|j}| t|ƒ|kt|ƒ¡| |j|j|j|jfd¡|j }| |j|j|j|jfd¡|j }| |j|j|j|jfd¡dS)Nc@s&eZdZdZddd„ZdZdZdZdS) z,TestEnum.test_new_with_keywords..HuhúPLAIN BOLD_ITALIC HIGHLIGHTNcSsBt|jƒ}t ||¡}|r&|dkr&|}||_||_||_||_|Sr³)r³Ú __members__rþrÚopenÚcloser·r©rZ docstringrþrÿrér%rXrXrYrs   z4TestEnum.test_new_with_keywords..Huh.__new__Únormal©ú***really super important***ú***©úplease ==take notice==ú==r)NN©rfrgrhÚ __order__rÚPLAINÚ BOLD_ITALICÚ HIGHLIGHTrXrXrXrYr¤s  r¤©rrNN©rkrrr©rlrrr) rr rOÚtyperèrér·rþrÿr r ©r`r¤ÚpZbiÚhrXrXrYÚtest_new_with_keywordss"þþþzTestEnum.test_new_with_keywordscCs(Gdd„dtƒ}| t|jƒtk¡dS)Nc@seZdZdZdZdZdZdS)z@TestEnum.test_members_is_ordereddict_if_ordered..Orderedúfirst second thirdZbippityZboppityÚbooN)rfrgrhr rfriÚthirdrXrXrXrYÚOrdered3sr©rrOrrýr7)r`rrXrXrYÚ&test_members_is_ordereddict_if_ordered2sz/TestEnum.test_members_is_ordereddict_if_orderedcCs(Gdd„dtƒ}| t|jƒtk¡dS)Nc@seZdZdZdZdS)zFTestEnum.test_members_is_ordereddict_if_not_ordered..UnorderedÚthatÚthoseN)rfrgrhÚthisÚtheserXrXrXrYÚ Unordered;srr)r`rrXrXrYÚ*test_members_is_ordereddict_if_not_ordered:sz3TestEnum.test_members_is_ordereddict_if_not_orderedcCs |j}| ||jƒ|jk¡dSr³)r»rOrº©r`r»rXrXrYÚtest_enum_in_enum_out@szTestEnum.test_enum_in_enum_outcCs|j}| |jjd¡dS©Nrk)r»rèr·rér!rXrXrYÚtest_enum_valueDszTestEnum.test_enum_valuecCs| tjjd¡dS©Nrl)rèrrrprérŒrXrXrYÚtest_intenum_valueHszTestEnum.test_intenum_valuecCs|j}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|j|jg|¡td  ¡ƒD]®\}}|d7}||ƒ}| |t ||ƒ¡| |j |¡|  ||¡| |j |¡| ||k¡| t|ƒ|k¡| t||ƒ¡| t|ƒd|¡| t|ƒd||f¡q\dS)NruúSPRING SUMMER AUTUMN WINTERrkzSeason.z)r»r´rèr³r·r¸r¹rºÚ enumerateÚsplitr]réÚassertNotEqualr¬rOrrùrÚrepr)r`r»ÚlstÚiZseasonÚerXrXrYÚ test_enumKs.ÿ  þzTestEnum.test_enumcCs^tdddd}tdddd}tdddƒ}| ||k ¡| ||¡| ||¡| ||¡dS)Nrkrlrq)rî)r#rOrèr*)r`Úe1Úe2Ze3rXrXrYÚtest_enum_helperbs   zTestEnum.test_enum_helpercCsˆGdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡| |jj|j¡| |jjd¡| |jjd¡| |jj|j¡dS)Nc@s:eZdZdZdd„Zddd„ZeƒZeeƒZedeƒZ dS)z)TestEnum.test_enum_in_enum..LevelzDATA_CHECK DESIGN_CHECK ALERTc_st |¡}t|ƒd|_|Sr#)rrr³r)rrarbr%rXrXrYrps z1TestEnum.test_enum_in_enum..Level.__new__NcSs`t|jj ¡ƒ|_g|_|jD]}|j |¡q|r@|j|jpBd|_|rV|j|jpXd|_ dSr³) r´reÚ _member_map_ÚvaluesZlower_priority_levelsZgreater_priority_levelsr›r¬Ú prerequisiteÚ dependent)r`Zprereqr6r%rXrXrYr_us  z2TestEnum.test_enum_in_enum..Level.__init__)NN) rfrgrhr¿rr_r#Ú DATA_CHECKÚ DESIGN_CHECKÚALERTrXrXrXrYÚLevelms  r:rk)rrèr7rér5r6r8r9)r`r:rXrXrYÚtest_enum_in_enumkszTestEnum.test_enum_in_enumcCs^|j}| |jjd¡| |jjd¡dd„}dd„}| t||jd¡| t||jd¡dS) Nr·rkcSs ||_dSr³r«©r¨Ú new_valuerXrXrYÚset_namesz*TestEnum.test_value_name..set_namecSs ||_dSr³r™r<rXrXrYÚ set_value’sz+TestEnum.test_value_name..set_valueZinviernorl)r»rèr·r¬réÚ assertRaisesr§)r`r»r>r?rXrXrYÚtest_value_nameŒszTestEnum.test_value_namecCsjGdd„dtƒ}| t|dƒ¡|`| t|dƒ¡| tt|d¡| tt|d¡| tt|jd¡dS)Nc@s$eZdZdZdZdZdZdd„ZdS)z0TestEnum.test_attribute_deletion..SeasonrkrlrmrucSsdSr³rXržrXrXrYÚspamžsz5TestEnum.test_attribute_deletion..Season.spamN)rfrgrhr·r¸r¹rºrBrXrXrXrYr»˜s r»rBr·ZDRYr¬) rrOÚhasattrrBrMr@r§r¨r·r!rXrXrYÚtest_attribute_deletion—s z TestEnum.test_attribute_deletioncCs"Gdd„dtƒ}| t|ƒ¡dS)Nc@s eZdZdS)z*TestEnum.test_bool_of_class..EmptyNrIrXrXrXrYÚEmptyªsrE©rrOÚbool)r`rErXrXrYÚtest_bool_of_class©szTestEnum.test_bool_of_classcCs,Gdd„dtƒ}|D]}| t|ƒ¡qdS)Nc@seZdZdZdZdZdS)z+TestEnum.test_bool_of_member..CountrrkrlN)rfrgrhÚzeror¢r£rXrXrXrYÚCount¯srJrF)r`rJr%rXrXrYÚtest_bool_of_member®szTestEnum.test_bool_of_membercCs,dd„}dd„}| t|¡| t|¡dS)NcSsGdd„dtƒ}dS)Nc@seZdZdZdS)zFTestEnum.test_invalid_names..create_bad_class_1..WrongrqN)rfrgrhÚmrorXrXrXrYÚWrong¸srMrÄ©rMrXrXrYÚcreate_bad_class_1·sz7TestEnum.test_invalid_names..create_bad_class_1cSsGdd„dtƒ}dS)Nc@seZdZdZdS)zFTestEnum.test_invalid_names..create_bad_class_2..WrongrmN)rfrgrhZ _reserved_rXrXrXrYrM»srMrÄrNrXrXrYÚcreate_bad_class_2ºsz7TestEnum.test_invalid_names..create_bad_class_2©r@rœ)r`rOrPrXrXrYÚtest_invalid_names¶s zTestEnum.test_invalid_namescCs,Gdd„dtƒ}| |j¡| |j¡dS)Nc@s eZdZdZdZdd„ZeZdS)z!TestEnum.test_bool..LogicTFcSs t|jƒSr³)rGrérŒrXrXrYÚ__bool__Äsz*TestEnum.test_bool..Logic.__bool__N)rfrgrhÚtrueÚfalserSÚ __nonzero__rXrXrXrYÚLogicÁsrW)rrOrTrMrU)r`rWrXrXrYÚ test_boolÀs zTestEnum.test_boolcCs|j}| d|k¡| |j|k¡| d|k¡|dƒ}| ||k¡| g|k¡Gdd„dtƒ}| |j|k¡Gdd„dtƒ}| |j|k¡| ||jƒ|jk¡Gdd„dtƒ}| |j|k¡| d |k¡| d d dd œ|k¡| d d i|k¡dS) Nr¹rmc@seZdZdZdZdS)z)TestEnum.test_contains..OtherEnumrkrlNr¡rXrXrXrYÚ OtherEnumÓsrYc@seZdZdZdZdS)z+TestEnum.test_contains..NumericEnumrkrlNr¡rXrXrXrYÚ NumericEnum×srZc@s&eZdZdddgZdZddddœZdS)z%TestEnum.test_contains..Wierdrkrlrm©rkrlrmN)rfrgrhrrrrXrXrXrYÚWierdÜs r\r[rkrl) r»rMrOr¹rr£rr¸r)r`r»ÚvalrYrZr\rXrXrYÚ test_containsÊs"zTestEnum.test_containscsˆ t‡fdd„¡dS)Ncs dˆjjkS©NÚtest)r»r¹rXrŒrXrYr±ær²z/TestEnum.test_member_contains..©r@rÍrŒrXrŒrYÚtest_member_containsåszTestEnum.test_member_containscCsÊ|j}| d |j¡d t|jƒ¡¡| d |j¡d t|jƒ¡¡| d |j¡d t|jƒ¡¡| d |j¡d t|jƒ¡¡| d |j¡d t|jƒ¡¡| d |j¡d t|jƒ¡¡dS©Nú{0}ú{0:}ú{0:20}ú{0:^20}ú{0:>20}ú{0:<20})r»rèÚformatr·rr!rXrXrYÚtest_format_enumès&ÿÿÿÿÿÿzTestEnum.test_format_enumcCs<Gdd„dttƒ}| t|jƒd¡| d |j¡d¡dS)Nc@seZdZdZdZdd„ZdS)z.TestEnum.test_custom_format..TestFloatgð?g@cSsdS)NúTestFloat success!rX)r`ÚspecrXrXrYÚ __format__ûsz9TestEnum.test_custom_format..TestFloat.__format__N)rfrgrhr¢r£rnrXrXrXrYÚ TestFloatøsroz TestFloat.onerdrl)rßrrèrr¢rj)r`rorXrXrYÚtest_custom_format÷szTestEnum.test_custom_formatcCs<Gdd„dttƒ}| t|jƒd¡| d |j¡d¡dS)Nc@seZdZdZdZdd„ZdS)z5TestEnum.test_format_with_custom_str..TestIntrkrlcSs |jdS©Nrmr«rŒrXrXrYr$sz=TestEnum.test_format_with_custom_str..TestInt.__str__N)rfrgrhr¢r£r$rXrXrXrYÚTestIntsrrZ twotwotword)rþrrèrr£rj)r`rrrXrXrYÚtest_format_with_custom_strsz$TestEnum.test_format_with_custom_strcCs | | |¡| t|ƒ¡¡dSr³)rèrjr©r`rmr%rXrXrYÚassertFormatIsName szTestEnum.assertFormatIsNamecCs^|j}| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡dSrc)rÞrurÙ)r`rÞrXrXrYÚtest_format_enum_date szTestEnum.test_format_enum_datecCs^|j}| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡dSrc)rÛrurÁ)r`rÛrXrXrYÚtest_format_enum_floatszTestEnum.test_format_enum_floatcCs^|j}| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡dSrc)rÜrurÆ)r`rÜrXrXrYÚtest_format_enum_intszTestEnum.test_format_enum_intcCs^|j}| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡dSrc)rÝrurÐ)r`rÝrXrXrYÚtest_format_enum_str'szTestEnum.test_format_enum_strcCs| | |¡| |j¡¡dSr³)rèrjrértrXrXrYÚassertFormatIsValue0szTestEnum.assertFormatIsValuecCsz|j}| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡dS) Nrdrerfrgrhriz {0:%Y %m}z{0:%Y %m %M:00})rÚrzrÙ)r`rÚrXrXrYÚtest_format_reprenum_date3sz"TestEnum.test_format_reprenum_datecCsˆ|j}| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d |j¡dS) Nrdrerfrgrhriz{0:n}z{0:5.2}z{0:f})rÂrzrÁ)r`rÂrXrXrYÚtest_format_reprenum_float>sz#TestEnum.test_format_reprenum_floatcCsˆ|j}| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d |j¡dS) Nrdrerfrgrhriz{0:+}z{0:08X}z{0:b})rÉrzrÆ)r`rÉrXrXrYÚtest_format_reprenum_intJsz!TestEnum.test_format_reprenum_intcCs^|j}| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡| d|j¡dSrc)rÓrzrÐ)r`rÓrXrXrYÚtest_format_reprenum_strVsz!TestEnum.test_format_reprenum_strcCsH|j}i}d||j<d||j<d||j<d||j<| ||jd¡dS)NZ1225Z0315Z0704Z1031)r»rºr·r¸r¹rè)r`r»ÚdatesrXrXrYÚ test_hash_s    zTestEnum.test_hashcCsÊGdd„dtƒ}t|ƒ}| ||j|j|j|jg¡| |j|jk¡| |jj d¡| |jj d¡| |dƒ|jk¡| |dƒ|jk¡| |jj d¡| t dd„|j   ¡Dƒƒt dd gƒ¡dS) Nc@s(eZdZdZdZdZdZZdZdZ dS)z-TestEnum.test_enum_duplicates..Seasonr'rkrlrmruN) rfrgrhr r·r¸r¹ÚFALLrºÚANOTHER_SPRINGrXrXrXrYr»is r»rmrkr¹cSsg|]\}}|j|kr|‘qSrXr«©r›ÚkÚvrXrXrYr}s z1TestEnum.test_enum_duplicates..rr‚)rr´rèr·r¸r¹rºrOrrér¬ÚsetrýÚitems)r`r»r,rXrXrYÚtest_enum_duplicateshs&ÿþ þzTestEnum.test_enum_duplicatescCs`Gdd„dtƒ}| t|ƒ|j|jg¡| t|jƒ|k¡| |jjd¡| |jjd¡dS)Nc@seZdZdZdZdZdS)z/TestEnum.test_enum_with_value_name..Huhz name valuerkrlN)rfrgrhr¿r¬rérXrXrXrYr¤‚sr¤r¬rk)rrèr´r¬rérOr)r`r¤rXrXrYÚtest_enum_with_value_names þz"TestEnum.test_enum_with_value_namecCs(Gdd„dttƒ}| |j|jk¡dS)Nc@seZdZdZdeZdS)z/TestEnum.test_intenum_from_scratch..phyrmrlN©rfrgrhÚpiÚtaurXrXrXrYÚphysr©rþrrOr‹rŒ©r`rrXrXrYÚtest_intenum_from_scratchŽsz"TestEnum.test_intenum_from_scratchcCs8Gdd„dttƒ}Gdd„d|ƒ}| |j|jk¡dS)Nc@s eZdZdS)z0TestEnum.test_intenum_inherited..IntEnumNrIrXrXrXrYr•src@seZdZdZdeZdS)z,TestEnum.test_intenum_inherited..phyrmrlNrŠrXrXrXrYr—srrŽ)r`rrrXrXrYÚtest_intenum_inherited”szTestEnum.test_intenum_inheritedcCs(Gdd„dttƒ}| |j|jk¡dS)Nc@seZdZdZdeZdS)z1TestEnum.test_floatenum_from_scratch..phyr½rlNrŠrXrXrXrYrsr©rßrrOr‹rŒrrXrXrYÚtest_floatenum_from_scratchœsz$TestEnum.test_floatenum_from_scratchcCs8Gdd„dttƒ}Gdd„d|ƒ}| |j|jk¡dS)Nc@s eZdZdS)z4TestEnum.test_floatenum_inherited..FloatEnumNrIrXrXrXrYÚ FloatEnum£sr”c@seZdZdZdeZdS)z.TestEnum.test_floatenum_inherited..phyr½rlNrŠrXrXrXrYr¥srr’)r`r”rrXrXrYÚtest_floatenum_inherited¢sz!TestEnum.test_floatenum_inheritedcCs(Gdd„dttƒ}| |j|jk¡dS)Nc@seZdZdZdZdS)z/TestEnum.test_strenum_from_scratch..phyÚPiÚTauNrŠrXrXrXrYr«sr)rrrOr‹rŒrrXrXrYÚtest_strenum_from_scratchªsz"TestEnum.test_strenum_from_scratchcCsHGdd„dtƒ}| dddg|jd¡| dd„t|jƒDƒdd d g¡t|ƒ}| t|ƒt|ƒ¡| t|ƒd ¡d }| ¡}t|ƒD]¸\}}|d 7}||ƒ}| ||¡| t |ƒ|¡| |j |¡|  ||k¡| |  |¡d |¡|  d|kod kn¡|  t |ƒ|k¡|  t|t ƒ¡|  t|tƒ¡qŠdS)Nc@s(eZdZdZdZdZdZdZdZdZ dS) z&TestEnum.test_intenum..WeekDayrkrlrmrurvr2rwN) rfrgrhÚSUNDAYÚMONDAYÚTUESDAYÚ WEDNESDAYÚTHURSDAYÚFRIDAYÚSATURDAYrXrXrXrYÚWeekDay±sr rSr{ÚccSsg|]}|‘qSrXrX)r›r-rXrXrYr»sz)TestEnum.test_intenum..rrkrlrwú8SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAYrÛ)rrèršr—r›r´r³r)r(rþr¬rOÚindexrrùr)r`r r,r r-Úweekdayr.rXrXrYÚ test_intenum°s( "  zTestEnum.test_intenumcCsVGdd„dtƒ}| |j|jk¡| |dƒjd¡| dd„|j ¡Dƒdg¡dS)Nc@s0eZdZdZdZdZdZZdZdZ dZ dZ d S) z1TestEnum.test_intenum_duplicates..WeekDayr¢rkrlrmrurvr2rwN) rfrgrhr r™ršr›ÚTEUSDAYrœrržrŸrXrXrXrYr Ðsr rmr›cSsg|]\}}|j|kr|‘qSrXr«rƒrXrXrYrÛs ÿz4TestEnum.test_intenum_duplicates..r¦)rrOr¦r›rèr¬rýr‡)r`r rXrXrYÚtest_intenum_duplicatesÏs  ÿz TestEnum.test_intenum_duplicatesc CsXt tjj¡}| t |¡tj¡t tjjd¡}| t¡t |¡W5QRXdS)Ng{®Gáz„?) rßÚhexrsrqréÚassertIsÚfromhexr@rœ)r`rrXrXrYÚtest_floatenum_fromhexÞs  zTestEnum.test_floatenum_fromhexcCs,tttƒrt‚t|jtjƒt|jtƒdSr³)rùrjr˜r¦rOrprŒrXrXrYÚtest_pickle_enumås zTestEnum.test_pickle_enumcCs,tttƒrt‚t|jtjƒt|jtƒdSr³)rùrrr˜r¦rOrprŒrXrXrYÚtest_pickle_intës zTestEnum.test_pickle_intcCs,tttƒrt‚t|jtjƒt|jtƒdSr³)rùrsr˜r¦rOrprŒrXrXrYÚtest_pickle_floatñs zTestEnum.test_pickle_floatcCs,tttƒrt‚t|jtjƒt|jtƒdSr³)rùr‰r˜r¦rOZhimrŒrXrXrYÚtest_pickle_enum_function÷s z"TestEnum.test_pickle_enum_functioncCs,tttƒrt‚t|jtjƒt|jtƒdSr³)rùrˆr˜r¦rOZwhorŒrXrXrYÚ%test_pickle_enum_function_with_moduleýs z.TestEnum.test_pickle_enum_function_with_modulecCs<Gdd„dtƒ}t|_ttƒD]}| |j |¡d¡qdS)Nc@seZdZdZdZdS)z6TestEnum.test_pickle_by_name..ReplaceGlobalIntrkrlN)rfrgrhrárârXrXrXrYÚReplaceGlobalIntsr±râ)rrÚ __reduce_ex__r—r<rèrâ)r`r±ÚprotorXrXrYÚtest_pickle_by_names zTestEnum.test_pickle_by_namecCs@tddƒ}t |¡|tƒd<t|jt|jƒt|jt|ƒdS)NÚ BadPicklezdill sweet bread-n-butter) rrSZmake_class_unpicklableÚglobalsr©r@rÍZdillr;)r`rµrXrXrYÚtest_exploding_pickle s    zTestEnum.test_exploding_picklecCs$Gdd„dttƒ}| |jd¡dS)Nc@seZdZdZdZdZdS)z-TestEnum.test_string_enum..SkillLevelz'what is the sound of one hand clapping?z#why did the chicken cross the road?ú knock, knock!N)rfrgrhZmasterZ journeymanÚ apprenticerXrXrXrYÚ SkillLevelsrºr¸)rrrèr¹)r`rºrXrXrYÚtest_string_enumszTestEnum.test_string_enumcCsRGdd„dtƒ}| |dƒ|jk¡| t|dƒ|jk¡| |d|jk¡dS)Nc@seZdZdZdZdZdZdS)z-TestEnum.test_getattr_getitem..PeriodrkrlrmruN)rfrgrhÚmorningÚnoonZeveningÚnightrXrXrXrYÚPeriodsr¿rlr¾r¼)rrOr½r]r¾r¼©r`r¿rXrXrYÚtest_getattr_getitemszTestEnum.test_getattr_getitemcCs|j}| t|dƒ¡dS)NÚ__hash__)r»rOr]r!rXrXrYÚtest_getattr_dunder#szTestEnum.test_getattr_dundercCs4Gdd„dtƒ}| t|ƒ|j|j|j|jg¡dS)Nc@s eZdZdZdZdZdZdZdS)z-TestEnum.test_iteration_order..SeasonzSUMMER WINTER AUTUMN SPRINGrlrurmrkN)rfrgrhr r¸rºr¹r·rXrXrXrYr»(s r»)rrèr´r¸rºr¹r·r!rXrXrYÚtest_iteration_order's þzTestEnum.test_iteration_ordercCs2| tt|jƒƒ|jj|jj|jj|jjg¡dSr³)rèr´Úreversedr»rºr¹r¸r·rŒrXrXrYÚtest_iteration_order_reversed3s  ÿþz&TestEnum.test_iteration_order_reversedcCs4Gdd„dtƒ}| t|ƒ|j|j|j|jg¡dS)Nc@s4eZdZeddƒZeddƒZeddƒZeddƒZd S) zFTestEnum.test_iteration_order_with_unorderable_values..Complexrwrqg…ëQ¸ @rlrkrPi³ÿÿÿrvN)rfrgrhÚcomplexrSr{r¡ÚdrXrXrXrYÚComplex;s   rÉ)rrèr´rSr{r¡rÈ)r`rÉrXrXrYÚ,test_iteration_order_with_unorderable_values:s þz5TestEnum.test_iteration_order_with_unorderable_valuescCsÆtddƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td ¡ƒD]d\}}|d7}||ƒ}| t |j ƒ|¡|  ||¡| |j |¡|  ||k¡|  t|ƒ|k¡q\dS©NÚ SummerMonthújune july augustrmrk©rr´rèr³ÚjuneÚjulyÚaugustr(r)rþrér*r¬rOr©r`rÌr,r-Úmonthr.rXrXrYÚ test_programatic_function_stringEs  þ z)TestEnum.test_programatic_function_stringcCsÄtdddd}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td ¡dƒD]\\}}||ƒ}| t |j ƒ|¡|  ||¡| |j |¡|  ||k¡|  t|ƒ|k¡qbdS)NrÌrÍrx©r¡rmrÎrÒrXrXrYÚ+test_programatic_function_string_with_startWsþ z4TestEnum.test_programatic_function_string_with_startcCsÌtddddgƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td ¡ƒD]d\}}|d7}||ƒ}| t |j ƒ|¡|  ||¡| |j |¡|  ||k¡|  t|ƒ|k¡qbdS©NrÌrÏrÐrÑrmrÍrkrÎrÒrXrXrYÚ%test_programatic_function_string_lisths þ z.TestEnum.test_programatic_function_string_listcCsÊtddddgdd}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td ¡dƒD]\\}}||ƒ}| t |j ƒ|¡|  ||¡| |j |¡|  ||k¡|  t|ƒ|k¡qhdS) NrÌrÏrÐrÑrrrÕrmrÍrÎrÒrXrXrYÚ0test_programatic_function_string_list_with_startzsþ z9TestEnum.test_programatic_function_string_list_with_startcCsÆtddƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td ¡ƒD]d\}}|d7}||ƒ}| t |j ƒ|¡|  ||¡| |j |¡|  ||k¡|  t|ƒ|k¡q\dS©NrÌ))rÏrk)rÐrl)rÑrmrmrÍrkrÎrÒrXrXrYÚ"test_programatic_function_iterable‹s&þþ z+TestEnum.test_programatic_function_iterablecCsÎtdtdƒƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡trX| |j|j|jg|¡t d  ¡ƒD]d\}}|d7}||ƒ}| t |j ƒ|¡|  ||¡| |j|¡| ||k¡| t|ƒ|k¡qddSrÚ)rÚdictr´rèr³r-rÏrÐrÑr(r)rþrér*r¬rOrrÒrXrXrYÚ#test_programatic_function_from_dict s(þþ z,TestEnum.test_programatic_function_from_dictcCs¸tddtd}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td  ¡ƒD]R\}}|d7}||ƒ}| ||¡| |j |¡|  ||k¡|  t |ƒ|k¡q`dS©NrÌrÍ©rrmrk© rrþr´rèr³rÏrÐrÑr(r)r¬rOrrÒrXrXrYÚtest_programatic_function_type¶sþ z'TestEnum.test_programatic_function_typecCs´tddtdd}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td  ¡dƒD]J\}}||ƒ}| ||¡| |j |¡|  ||k¡|  t |ƒ|k¡qddS)NrÌrÍé)rr¡rmràrÒrXrXrYÚ)test_programatic_function_type_with_startÇsþ z2TestEnum.test_programatic_function_type_with_startcCs´tddƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td ¡ƒD]R\}}|d7}||ƒ}| ||¡| |j |¡|  ||k¡|  t |ƒ|k¡q\dSrË© rr´rèr³rÏrÐrÑr(r)r¬rOrrÒrXrXrYÚ,test_programatic_function_type_from_subclass×s þ z5TestEnum.test_programatic_function_type_from_subclasscCs²tdddd}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡td ¡dƒD]J\}}||ƒ}| ||¡| |j |¡|  ||k¡|  t |ƒ|k¡qbdS)NrÌrÍé(rÕrmrärÒrXrXrYÚ7test_programatic_function_type_from_subclass_with_startèsþ z@TestEnum.test_programatic_function_type_from_subclass_with_startcCsÎtdtdƒƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡ttdƒ  ¡ƒD]d\}}|d7}||ƒ}| t |j ƒ|¡|  ||¡| |j |¡| ||k¡| t|ƒ|k¡qddSrË©rr*r´rèr³rÏrÐrÑr(r)rþrér*r¬rOrrÒrXrXrYÚ!test_programatic_function_unicodeøs þ z*TestEnum.test_programatic_function_unicodecCsÜtdtdƒtdƒtdƒgƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡ttdƒ  ¡ƒD]d\}}|d7}||ƒ}| t |j ƒ|¡|  ||¡| |j |¡| ||k¡| t|ƒ|k¡qrdSr×rèrÒrXrXrYÚ&test_programatic_function_unicode_list s þ z/TestEnum.test_programatic_function_unicode_listcCsètdtdƒdftdƒdftdƒdffƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡ttdƒ  ¡ƒD]d\}}|d7}||ƒ}| t |j ƒ|¡|  ||¡| |j |¡| ||k¡| t|ƒ|k¡q~dS© NrÌrÏrkrÐrlrÑrmrÍrèrÒrXrXrYÚ*test_programatic_function_unicode_iterables& þþ z3TestEnum.test_programatic_function_unicode_iterablecCsðtdttdƒdftdƒdftdƒdffƒƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡trv| |j|j|j g|¡t tdƒ  ¡ƒD]d\}}|d7}||ƒ}| t |j ƒ|¡| ||¡| |j|¡| ||k¡| t|ƒ|k¡q†dSrë)rrÜr*r´rèr³r-rÏrÐrÑr(r)rþrér*r¬rOrrÒrXrXrYÚ+test_programatic_function_from_unicode_dict1s($þþ z4TestEnum.test_programatic_function_from_unicode_dictcCsÀtdtdƒtd}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡t tdƒ  ¡ƒD]R\}}|d7}||ƒ}| ||¡| |j |¡|  ||k¡|  t |ƒ|k¡qhdSrÞ)rr*rþr´rèr³rÏrÐrÑr(r)r¬rOrrÒrXrXrYÚ&test_programatic_function_unicode_typeGsþ z/TestEnum.test_programatic_function_unicode_typecCs¼tdtdƒƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| |j|j|jg|¡ttdƒ  ¡ƒD]R\}}|d7}||ƒ}| ||¡| |j |¡|  ||k¡|  t |ƒ|k¡qddSrË) rr*r´rèr³rÏrÐrÑr(r)r¬rOrrÒrXrXrYÚ4test_programatic_function_unicode_type_from_subclassXsþ z=TestEnum.test_programatic_function_unicode_type_from_subclasscCstrtdƒd d¡f}nd}t|ƒD]ä\}}trN|dkrN| tt|tdƒ¡q$t|tdƒƒ}t|ƒ}| t |ƒt |ƒ¡| t |ƒd|¡| |j |j |j g|¡ttdƒ  ¡ƒD]T\}}|d7}||ƒ}| |j|¡| |j|¡| ||k¡| t|ƒ|k¡q²q$dS)NrÌõSümmérMönthÚlatin1)rÌrðrkrÍrm)r-r*Údecoder(r@rÍrr´rèr³rÏrÐrÑr)rér¬rOr)r`Z class_namesr-Ú class_namerÌr,rÓr.rXrXrYÚ(test_programmatic_function_unicode_classis* þz1TestEnum.test_programmatic_function_unicode_classcCsVtttƒrt‚| tjd¡| tjtdƒ¡| tjttdƒk¡t|jtjƒdS)Nr†r‡)rùr…r˜rèr‡rOr]r¦rŒrXrXrYÚtest_subclassing‚s  zTestEnum.test_subclassingcCsdd„}| t|¡dS)NcSs$Gdd„dtƒ}Gdd„d|ƒ}dS)Nc@seZdZdZdZdZdS)z=TestEnum.test_extending..bad_extension..ColorrkrlrmN©rfrgrhrÀrÁrÂrXrXrXrYrÃŒsrÃc@seZdZdZdZdZdS)zATestEnum.test_extending..bad_extension..MoreColorrurvr2N©rfrgrhrÚmagentaÚyellowrXrXrXrYÚ MoreColorsrúrÄ)rÃrúrXrXrYÚ bad_extension‹sz.TestEnum.test_extending..bad_extensionra©r`rûrXrXrYÚtest_extendingŠs zTestEnum.test_extendingcCs:Gdd„dtƒ}| t|jƒ|k¡| |j ¡d¡dS)Nc@seZdZdZdZdd„ZdS)z/TestEnum.test_exclude_methods..whateverrrcSs d|jS)Nz no, not %sr™rŒrXrXrYÚreallyšsz6TestEnum.test_exclude_methods..whatever.reallyN)rfrgrhrrrþrXrXrXrYÚwhatever—srÿz no, not that)rrMrrþrèr)r`rÿrXrXrYÚtest_exclude_methods–szTestEnum.test_exclude_methodscCsdd„}| t|¡dS)NcSsGdd„dttƒ}dS)Nc@seZdZdZdS)zKTestEnum.test_wrong_inheritance_order..wrong_inherit..Wrongzerror before this pointN)rfrgrhZNotHererXrXrXrYrM¡srM)rrrNrXrXrYÚ wrong_inherit sz.wrong_inheritra)r`rrXrXrYÚtest_wrong_inheritance_orderŸsz%TestEnum.test_wrong_inheritance_ordercCsTGdd„dtƒ}Gdd„dtƒ}| |j|j¡| |j|j¡| |j|j¡dS)Nc@seZdZdZdZdZdS)z2TestEnum.test_intenum_transitivity..numberrkrlrmN)rfrgrhr¢r£rîrXrXrXrYÚnumber¦src@seZdZdZdZdZdS)z2TestEnum.test_intenum_transitivity..numerorkrlrmN)rfrgrhÚunoÚdosÚtresrXrXrXrYÚnumeroªsr)rrèr¢rr£rrîr)r`rrrXrXrYÚtest_intenum_transitivity¥s z"TestEnum.test_intenum_transitivitycCsœGdd„dtƒ}| |jjtk¡| |jtk¡Gdd„dttƒ}| |jjtk¡| |jtk¡Gdd„dtƒ}| |jjt k¡| |jt k¡dS)Nc@seZdZdZdZdS)z+TestEnum.test_introspection..NumberédéÈNr¡rXrXrXrYÚNumber³sr c@seZdZdZdZdZdS)z+TestEnum.test_introspection..StringZsoftZroughÚhardN)rfrgrhÚyarnZropeZwirerXrXrXrYÚString¸src@seZdZdZdZdS)z*TestEnum.test_introspection..PlainÚwhiterkN)rfrgrhÚvanillar¢rXrXrXrYÚPlain¾sr) rrOr¢r/rþrrr rr)r`r rrrXrXrYÚtest_introspection²szTestEnum.test_introspectioncCs4Gdd„dtƒ}Gdd„dtƒ}| t||j¡dS)Nc@seZdZdZdZdS)z4TestEnum.test_wrong_enum_in_call..MonochromerrkN©rfrgrhr"rrXrXrXrYÚ MonochromeÅsrc@seZdZdZdZdS)z0TestEnum.test_wrong_enum_in_call..GenderrrkN©rfrgrhÚmaleÚfemalerXrXrXrYÚGenderÈsr)rr@rœr©r`rrrXrXrYÚtest_wrong_enum_in_callÄsz TestEnum.test_wrong_enum_in_callcCs4Gdd„dtƒ}Gdd„dtƒ}| t||j¡dS)Nc@seZdZdZdZdS)z:TestEnum.test_wrong_enum_in_mixed_call..MonochromerrkNrrXrXrXrYrÎsrc@seZdZdZdZdS)z6TestEnum.test_wrong_enum_in_mixed_call..GenderrrkNrrXrXrXrYrÑsr)rrr@rœrrrXrXrYÚtest_wrong_enum_in_mixed_callÍsz&TestEnum.test_wrong_enum_in_mixed_callcCs:Gdd„dtƒ}Gdd„dtƒ}| ||jƒ|jk¡dS)Nc@seZdZdZdZdS)z6TestEnum.test_mixed_enum_in_call_1..MonochromerrkNrrXrXrXrYr×src@seZdZdZdZdS)z2TestEnum.test_mixed_enum_in_call_1..GenderrrkNrrXrXrXrYrÚsr)rrOrrrrXrXrYÚtest_mixed_enum_in_call_1Ösz"TestEnum.test_mixed_enum_in_call_1cCs:Gdd„dtƒ}Gdd„dtƒ}| ||jƒ|jk¡dS)Nc@seZdZdZdZdS)z6TestEnum.test_mixed_enum_in_call_2..MonochromerrkNrrXrXrXrYràsrc@seZdZdZdZdS)z2TestEnum.test_mixed_enum_in_call_2..GenderrrkNrrXrXrXrYrãsr)rrrOrr"rrXrXrYÚtest_mixed_enum_in_call_2ßsz"TestEnum.test_mixed_enum_in_call_2cCs6Gdd„dtƒ}Gdd„d|ƒ}| t|jƒd¡dS)Nc@seZdZdd„ZdS)z*TestEnum.test_flufl_enum..FluflnumcSs t|jƒSr³)rþrérŒrXrXrYÚ__int__êsz2TestEnum.test_flufl_enum..Fluflnum.__int__N)rfrgrhrrXrXrXrYÚFluflnumésrc@seZdZdZdZdZdS)z0TestEnum.test_flufl_enum..MailManOptionsrkrlrmN)rfrgrhÚoption1Zoption2Zoption3rXrXrXrYÚMailManOptionsìsr!rk)rrèrþr )r`rr!rXrXrYÚtest_flufl_enumèszTestEnum.test_flufl_enumcCs2Gdd„dtƒ}| t|d¡| t|jd¡dS)Nc@seZdZdZdZdZdS)z0TestEnum.test_no_such_enum_member..ColorrkrlrmNrörXrXrXrYrÃósrÃruZ chartreuse)rr@rœÚKeyErrorÚ __getitem__rÅrXrXrYÚtest_no_such_enum_memberòsz!TestEnum.test_no_such_enum_membercCs&Gdd„dtƒ}| t|jƒd¡dS)Nc@s eZdZdZdZdZdd„ZdS)z%TestEnum.test_new_repr..ColorrkrlrmcSs d|jS)Nz!don't you just love shades of %s?r«rŒrXrXrYÚ__repr__ÿsz.TestEnum.test_new_repr..Color.__repr__N)rfrgrhrÀrÁrÂr&rXrXrXrYrÃûsrÃz#don't you just love shades of blue?)rrèr+rÂrÅrXrXrYÚ test_new_reprús þzTestEnum.test_new_reprcCs8Gdd„dtƒ}Gdd„dt|ƒ}| t|jƒd¡dS)Nc@seZdZdd„ZdS)z,TestEnum.test_inherited_repr..MyEnumcSs d|jS)NzMy name is %s.r«rŒrXrXrYr&sz5TestEnum.test_inherited_repr..MyEnum.__repr__N)rfrgrhr&rXrXrXrYÚMyEnumsr(c@seZdZdZdZdZdS)z/TestEnum.test_inherited_repr..MyIntEnumrkrlrmN)rfrgrhrrÚtheotherrXrXrXrYÚ MyIntEnum sr*zMy name is that.)rrþrèr+r)r`r(r*rXrXrYÚtest_inherited_reprszTestEnum.test_inherited_reprcs4G‡fdd„dtƒ‰ˆdtfiƒ}ˆdtfiƒ}dS)NcseZdZ‡‡fdd„Z‡ZS)z3TestEnum.test_multiple_mixin_mro..auto_enumc s|}| ||i¡}t|dƒrH|jD]}||||<q"dd„| ¡Dƒ}n2g}| ¡D]$\}}t |¡rp| |¡|||<qT| ||i¡}d} |D]}||||<q|jD].}||}|dkrÂ| }n|} | d7} |||<q¨| ¡D]"\}}||jkrà||krà|||<qàtˆ|ƒ  ||||¡S)NÚ _member_namescSsg|]}t |¡r|‘qSrX)rSr`)r›r„rXrXrYrs zOTestEnum.test_multiple_mixin_mro..auto_enum.__new__..rrXrk) Ú __prepare__rCr,Úkeysr‡rSr`r›r^r) ÚmetaclsrÚbasesÚ classdictZ original_dictZ temp_dictr„Zsundersr…r-)reÚ auto_enumrXrYrs>         ÿz;TestEnum.test_multiple_mixin_mro..auto_enum.__new__)rfrgrhrrirX©r2rdrYr2sr2ÚAutoNumberedEnumÚ AutoIntEnum)rrr)r`r4r5rXr3rYÚtest_multiple_mixin_mros z TestEnum.test_multiple_mixin_mroc sØdd„‰d‰G‡‡‡fdd„dtƒ‰ˆdtfiƒ‰tj td¡‰tˆdƒ}| d¡W5QRXG‡fd d „d ˆƒ}| |j |j |j |j gt |ƒ¡| |j jd ¡| |j jd ¡| |j jd ¡| |j jd¡dS)NcWst|ƒdkr|dS|S)Nrkr)r³)rarXrXrYÚidentityOs z0TestEnum.test_meta_reconfigure..identitycs@eZdZed dd„ƒZ‡‡fdd„Zd ‡‡‡‡fdd„ Z‡ZS) z4TestEnum.test_meta_reconfigure..JSONEnumMetaNrXcSsiSr³rX)r/rr0Úinitr¡ÚsettingsrXrXrYr-Xsz@TestEnum.test_meta_reconfigure..JSONEnumMeta.__prepare__cstˆ|ƒj|ŽdSr³)r^r_)rrarb)Ú JSONEnumMetarerXrYr_\sz=TestEnum.test_meta_reconfigure..JSONEnumMeta.__init__c sÖddl}g}ˆdk rVd|kr&tdƒ‚d|kr6tdƒ‚d|krFtdƒ‚| d¡} t| ttfƒsd| f} | d¡} | d¡} t| ƒ} | | ¡} W5QRX| D]º}g}|| d}| dd…D] }||}qºt|   ¡ƒD]d\}\}}t|ttfƒsô|f}||d}|dd…D]}||}q |dk r.||ƒ}|  |¡qÔt|ƒ}|  |ˆ|Žf¡qšt ˆ|ƒ  |||||¡}t|  ¡ƒ}|j d d „d |D]\}}|||<qŽ|D]\}}|||<q¦t ˆ|ƒ |||||||¡S) NrÚ_filez_file is requiredÚ_namez_name is requiredÚ_valuez_value is requiredrkcSs|dddkrdnd|fS)Nrr[rkrX)rrXrXrYr±†r²zNTestEnum.test_meta_reconfigure..JSONEnumMeta.__new__..)Úkey)ÚjsonrÍÚpoprùÚtupler´rþÚloadÚsortedr‡r›r^r-Úsortr)r/rr0Zclsdictr8r¡r9r?ÚmembersZ name_specZ value_specÚfileÚfZ json_dataÚdatar4r¬ZpieceÚorderZ value_pathÚfuncréÚ enum_dictr‡)ÚJSONEnumr:rer7rXrYr_sT            ÿ     z.JSONEnumMeta.__new__)NNrX)NNrX)rfrgrhÚ classmethodr-r_rrirX)rLr:r7rdrYr:Vs r:ZJsonEnumztest_json.jsonÚwun[{"name":"Afghanistan","alpha-2":"AF","country-code":"004","notes":{"description":"pretty"}},{"name":"Ã…land Islands","alpha-2":"AX","country-code":"248","notes":{"description":"serene"}},{"name":"Albania","alpha-2":"AL","country-code":"008","notes":{"description":"exciting"}},{"name":"Algeria","alpha-2":"DZ","country-code":"012","notes":{"description":"scarce"}}]cs6eZdZdZ”ZdZdddd„fddd d„fd œZd S) z/TestEnum.test_meta_reconfigure..Countryz"abbr code country_name descriptionúalpha-2)rONz country-codecSst|ƒSr³)rþ)r¡rXrXrYr±Ÿr²z8TestEnum.test_meta_reconfigure..Country.©r¬N)ÚnotesröcSs| ¡Sr³)Útitle)rbrXrXrYr±¡r²)rkrlrmruN)rfrgrhrðr;r<r=rX)Ú test_filerXrYÚCountry™s  ürTÚAFéøZAlbaniaZScarce)rrÚosÚpathrÚtempdirrþÚwriterèrUZAXÚALZDZr´ÚabbrrZ country_namerö)r`rGrTrX)rLr:r7rSrYÚtest_meta_reconfigureMs9 ÿ zTestEnum.test_meta_reconfigurecsªG‡fdd„dtƒ‰Gdd„dˆtƒ}| |jtjk¡| t|j|jƒd¡ˆtƒd<|tƒd<ˆddƒ}| |d¡t |j|dƒ| |jj d¡t |j|jƒdS) NcsHeZdZdZdd„Zdd„Zedd„ƒZdd „Zd d „Z‡fd d „ZdS)z:TestEnum.test_subclasses_with_getnewargs..NamedIntÚNamedIntcWsN|}t|ƒdkrtdƒ‚|d|dd…}}tj|f|žŽ}||_||_|S©Nrkú name and value must be specifiedr©r³rÍrþrÚ_intnameÚ_args©rrarcr¬r`rXrXrYr®s zBTestEnum.test_subclasses_with_getnewargs..NamedInt.__new__cSs|jSr³)rcrŒrXrXrYÚ__getnewargs__·szITestEnum.test_subclasses_with_getnewargs..NamedInt.__getnewargs__cSs|jSr³©rbrŒrXrXrYrf¹szCTestEnum.test_subclasses_with_getnewargs..NamedInt.__name__cSsdt|ƒj|jt |¡fS©Nz %s(%r, %s)©rrfrþr&rŒrXrXrYr&¼s þzCTestEnum.test_subclasses_with_getnewargs..NamedInt.__repr__cSs&t}|j}|jtkr| |¡S||ƒSr³©rþr$Ú __objclass__rr&©r`ÚbaseZbase_strrXrXrYr$Ás   zBTestEnum.test_subclasses_with_getnewargs..NamedInt.__str__csBt|ƒt|ƒ}t|ˆƒr:t|ˆƒr:ˆd|j|jf|ƒS|SdS©Nz (%s + %s)©rþrùrf©r`ÚotherÚtemp©r^rXrYÚ__add__ÊsþzBTestEnum.test_subclasses_with_getnewargs..NamedInt.__add__N) rfrgrhrrer®r&r$rsrXrrrXrYr^¬s   r^c@seZdZdZdZdZdS)z5TestEnum.test_subclasses_with_getnewargs..NEIÚNEI©zthe-xrk©zthe-yrlN©rfrgrhÚxÚyrXrXrXrYrtÓsrtúNamedInt('(the-x + the-y)', 3)r`rvrl© rþrrOrrèr+rxryr¶r¦ré©r`rtZNI5rXrrrYÚtest_subclasses_with_getnewargs«s'    z(TestEnum.test_subclasses_with_getnewargscsªG‡fdd„dtƒ‰Gdd„dˆtƒ}| |jtjk¡| t|j|jƒd¡ˆtƒd<|tƒd<ˆddƒ}| |d¡t |j|dƒ| |jj d¡t |j|jƒdS) NcsHeZdZdZdd„Zdd„Zedd„ƒZdd „Zd d „Z‡fd d „ZdS)z6TestEnum.test_subclasses_with_reduce..NamedIntr^cWsN|}t|ƒdkrtdƒ‚|d|dd…}}tj|f|žŽ}||_||_|Sr_rardrXrXrYrås z>TestEnum.test_subclasses_with_reduce..NamedInt.__new__cSs |j|jfSr³©rercrŒrXrXrYÚ __reduce__îszATestEnum.test_subclasses_with_reduce..NamedInt.__reduce__cSs|jSr³rfrŒrXrXrYrfðsz?TestEnum.test_subclasses_with_reduce..NamedInt.__name__cSsdt|ƒj|jt |¡fSrgrhrŒrXrXrYr&ós þz?TestEnum.test_subclasses_with_reduce..NamedInt.__repr__cSs&t}|j}|jtkr| |¡S||ƒSr³rirkrXrXrYr$øs   z>TestEnum.test_subclasses_with_reduce..NamedInt.__str__csBt|ƒt|ƒ}t|ˆƒr:t|ˆƒr:ˆd|j|jf|ƒS|SdSrmrnrorrrXrYrs sþz>TestEnum.test_subclasses_with_reduce..NamedInt.__add__N) rfrgrhrrr®r&r$rsrXrrrXrYr^ãs   r^c@seZdZdZdZdZdS)z1TestEnum.test_subclasses_with_reduce..NEIrtrurvNrwrXrXrXrYrt srtrzr`rvrlr{r|rXrrrYÚtest_subclasses_with_reduceâs'    z$TestEnum.test_subclasses_with_reducecsªG‡fdd„dtƒ‰Gdd„dˆtƒ}| |jtjk¡| t|j|jƒd¡ˆtƒd<|tƒd<ˆddƒ}| |d¡t |j|dƒ| |jj d¡t |j|jƒdS) NcsHeZdZdZdd„Zdd„Zedd„ƒZdd „Zd d „Z‡fd d „ZdS)z9TestEnum.test_subclasses_with_reduce_ex..NamedIntr^cWsN|}t|ƒdkrtdƒ‚|d|dd…}}tj|f|žŽ}||_||_|Sr_rardrXrXrYr s zATestEnum.test_subclasses_with_reduce_ex..NamedInt.__new__cSs |j|jfSr³r~©r`r³rXrXrYr²& szGTestEnum.test_subclasses_with_reduce_ex..NamedInt.__reduce_ex__cSs|jSr³rfrŒrXrXrYrf( szBTestEnum.test_subclasses_with_reduce_ex..NamedInt.__name__cSsdt|ƒj|jt |¡fSrgrhrŒrXrXrYr&+ s þzBTestEnum.test_subclasses_with_reduce_ex..NamedInt.__repr__cSs&t}|j}|jtkr| |¡S||ƒSr³rirkrXrXrYr$0 s   zATestEnum.test_subclasses_with_reduce_ex..NamedInt.__str__csBt|ƒt|ƒ}t|ˆƒr:t|ˆƒr:ˆd|j|jf|ƒS|SdSrmrnrorrrXrYrs9 sþzATestEnum.test_subclasses_with_reduce_ex..NamedInt.__add__N) rfrgrhrr²r®r&r$rsrXrrrXrYr^ s   r^c@seZdZdZdZdZdS)z4TestEnum.test_subclasses_with_reduce_ex..NEIrtrurvNrwrXrXrXrYrtB srtrzr`rvrlr{r|rXrrrYÚtest_subclasses_with_reduce_ex s'    z'TestEnum.test_subclasses_with_reduce_excs¬G‡fdd„dtƒ‰Gdd„dˆtƒ}| |jtjk¡| t|j|jƒd¡ˆtƒd<|tƒd<ˆddƒ}| |d¡| |jj d¡t |j t |jƒt |j t |ƒdS) Ncs@eZdZdZdd„Zedd„ƒZdd„Zdd „Z‡fd d „Zd S) zHTestEnum.test_subclasses_without_direct_pickle_support..NamedIntr^cWsN|}|d|dd…}}t|ƒdkr.tdƒ‚tj|f|žŽ}||_||_|S©Nrrkr`rardrXrXrYrU s zPTestEnum.test_subclasses_without_direct_pickle_support..NamedInt.__new__cSs|jSr³rfrŒrXrXrYrf^ szQTestEnum.test_subclasses_without_direct_pickle_support..NamedInt.__name__cSsdt|ƒj|jt |¡fSrgrhrŒrXrXrYr&a s þzQTestEnum.test_subclasses_without_direct_pickle_support..NamedInt.__repr__cSs&t}|j}|jtkr| |¡S||ƒSr³rirkrXrXrYr$f s   zPTestEnum.test_subclasses_without_direct_pickle_support..NamedInt.__str__csBt|ƒt|ƒ}t|ˆƒr:t|ˆƒr:ˆd|j|jf|ƒS|SdSrmrnrorrrXrYrso sþzPTestEnum.test_subclasses_without_direct_pickle_support..NamedInt.__add__N©rfrgrhrr®r&r$rsrXrrrXrYr^S s   r^c@seZdZdZdZdZdS)zCTestEnum.test_subclasses_without_direct_pickle_support..NEIrtrurvNrwrXrXrXrYrtx srtrzr`rvrl)rþrrOrrèr+rxryr¶rér©r@rÍr;r|rXrrrYÚ-test_subclasses_without_direct_pickle_supportR s%    z6TestEnum.test_subclasses_without_direct_pickle_supportcs¨G‡fdd„dtƒ‰Gdd„dˆtƒ}| |jtjk¡| t|j|jƒd¡ˆtƒd<|tƒd<ˆddƒ}| |d¡| |jj d¡t |j|jƒt |j|ƒdS) Ncs@eZdZdZdd„Zedd„ƒZdd„Zdd „Z‡fd d „Zd S) zSTestEnum.test_subclasses_without_direct_pickle_support_using_name..NamedIntr^cWsN|}|d|dd…}}t|ƒdkr.tdƒ‚tj|f|žŽ}||_||_|SrƒrardrXrXrYrŠ s z[TestEnum.test_subclasses_without_direct_pickle_support_using_name..NamedInt.__new__cSs|jSr³rfrŒrXrXrYrf“ sz\TestEnum.test_subclasses_without_direct_pickle_support_using_name..NamedInt.__name__cSsdt|ƒj|jt |¡fSrgrhrŒrXrXrYr&– s þz\TestEnum.test_subclasses_without_direct_pickle_support_using_name..NamedInt.__repr__cSs&t}|j}|jtkr| |¡S||ƒSr³rirkrXrXrYr$› s   z[TestEnum.test_subclasses_without_direct_pickle_support_using_name..NamedInt.__str__csBt|ƒt|ƒ}t|ˆƒr:t|ˆƒr:ˆd|j|jf|ƒS|SdSrmrnrorrrXrYrs¤ sþz[TestEnum.test_subclasses_without_direct_pickle_support_using_name..NamedInt.__add__Nr„rXrrrXrYr^ˆ s   r^c@s eZdZdZdZdZdd„ZdS)zNTestEnum.test_subclasses_without_direct_pickle_support_using_name..NEIrtrurvcSst|j|jffSr³)r]reÚ_name_rrXrXrYr²± sz\TestEnum.test_subclasses_without_direct_pickle_support_using_name..NEI.__reduce_ex__N)rfrgrhrxryr²rXrXrXrYrt­ srtrzr`rvrl) rþrrOrrèr+rxryr¶rér¦r|rXrrrYÚ8test_subclasses_without_direct_pickle_support_using_name‡ s%    zATestEnum.test_subclasses_without_direct_pickle_support_using_namecCsbGdd„dttƒ}| t|jƒ|k¡| t|jtƒ¡| |jd¡|t ƒd<t |j|jƒdS)Nc@seZdZdZdZdZdZdS)z/TestEnum.test_tuple_subclass..SomeTupleÚ SomeTuple)rkz for the money)rlz for the show©rmz for the musicN)rfrgrhrfrirrXrXrXrYrˆ¿ srˆr‰) rArrOrrfrùrirèrr¶r¦)r`rˆrXrXrYÚtest_tuple_subclass¾ s  zTestEnum.test_tuple_subclasscCs~Gdd„dtƒ}Gdd„d|ƒ}| t|ƒddt|ƒdf¡| t|ƒ|j|j|jg¡trz| ttt |ƒƒdddg¡dS) Nc@seZdZdd„Zdd„ZdS)zCTestEnum.test_inherited_new_from_enhanced_enum..AutoNumber2cSs"t|jƒd}t |¡}||_|Sr#©r³rýrrr©rrér¨rXrXrYrÜ s zKTestEnum.test_inherited_new_from_enhanced_enum..AutoNumber2.__new__cSs t|jƒSr³)rþrrŒrXrXrYrá szKTestEnum.test_inherited_new_from_enhanced_enum..AutoNumber2.__int__N)rfrgrhrrrXrXrXrYÚ AutoNumber2Û src@seZdZdZdZdZdZdS)z=TestEnum.test_inherited_new_from_enhanced_enum..Colorr½rXN©rfrgrhr rÀrÁrÂrXrXrXrYrÃã srÃrmú+wrong number of elements: %d (should be %d)rkrl) rrèr³r´rÀrÁrÂr.Úmaprþ)r`rrÃrXrXrYÚ%test_inherited_new_from_enhanced_enumÚ s z.TestEnum.test_inherited_new_from_enhanced_enumcCsbGdd„dtƒ}Gdd„d|ƒ}| t|ƒddt|ƒdf¡|j|j|j| |jd¡dS)Nc@seZdZdd„ZdS)z@TestEnum.test_inherited_new_from_mixed_enum..AutoNumber3cSs$t|jƒd}t ||¡}||_|S)Né )r³rýrþrrrŒrXrXrYrï s zHTestEnum.test_inherited_new_from_mixed_enum..AutoNumber3.__new__Nr0rXrXrXrYÚ AutoNumber3î sr“c@seZdZdZdZdZdZdS)z:TestEnum.test_inherited_new_from_mixed_enum..Colorr½rXNrŽrXrXrXrYrÃô srÃrmré )rrèr³rÀrÁrÂ)r`r“rÃrXrXrYÚ"test_inherited_new_from_mixed_enumí sz+TestEnum.test_inherited_new_from_mixed_enumcCsBGdd„dƒ}Gdd„dtƒ}| |ƒ|j¡| |j|ƒ¡dS)Nc@seZdZdd„ZdS)z+TestEnum.test_equality..AlwaysEqualcSsdS)NTrX©r`rprXrXrYÚ__eq__ sz2TestEnum.test_equality..AlwaysEqual.__eq__N)rfrgrhr—rXrXrXrYÚ AlwaysEqual sr˜c@seZdZdZdS)z,TestEnum.test_equality..OrdinaryEnumrkN)rfrgrhrSrXrXrXrYÚ OrdinaryEnum sr™)rrèrS)r`r˜r™rXrXrYÚ test_equalityÿ szTestEnum.test_equalitycCs€Gdd„dtƒ}| t|ƒ|j|j|j|j|jg¡| |j|jk¡| |j|jk¡| |j|jk¡| |j|jk¡dS)Nc@s$eZdZdZdZdZdZdZdZdS)z*TestEnum.test_ordered_mixin..Gradez A B C D FrvrurmrlrkN) rfrgrhr rÄrÅrÆrÇrÈrXrXrXrYÚGrade s r›) rrèr´rÄrÅrÆrÇrÈrO)r`r›rXrXrYÚtest_ordered_mixin s $zTestEnum.test_ordered_mixinc Cs`Gdd„dtƒ}| |j|dƒ¡| t¡ |jW5QRX| t¡|dW5QRXdS)Nc@s$eZdZdZdZdZedd„ƒZdS)z/TestEnum.test_missing_deprecated..LabelrrkrlcSs|jSr³©ÚAnyApple©rr¬rXrXrYÚ _missing_ sz9TestEnum.test_missing_deprecated..Label._missing_N)rfrgrhržÚRedAppleÚ GreenApplerMr rXrXrXrYÚLabel s r£ruÚredapple©rrèržr@r§r¤r#©r`r£rXrXrYÚtest_missing_deprecated s   z TestEnum.test_missing_deprecatedc Cs`Gdd„dtƒ}| |j|dƒ¡| t¡ |jW5QRX| t¡|dW5QRXdS)Nc@s$eZdZdZdZdZedd„ƒZdS)z$TestEnum.test_missing..LabelrrkrlcSs|jSr³r©rrérXrXrYÚ_missing_value_* sz4TestEnum.test_missing..Label._missing_value_N©rfrgrhržr¡r¢rMr©rXrXrXrYr£& s r£rur¤r¥r¦rXrXrYÚ test_missing% s   zTestEnum.test_missingc CsVGdd„dtƒ}|d| t¡ |jW5QRX| t¡|dƒW5QRXdS)Nc@s eZdZdZdZedd„ƒZdS)z)TestEnum.test_missing_name..LabelrkrlcSs(|D]}|j ¡| ¡kr|SqdSr³©r¬Úlower)rr¬r%rXrXrYÚ_missing_name_8 sz8TestEnum.test_missing_name..Label._missing_name_N©rfrgrhr¡r¢rMr®rXrXrXrYr£5 sr£r¤)rr@r§r¤rœr¦rXrXrYÚtest_missing_name4 s    zTestEnum.test_missing_namec CsDGdd„dtƒ}| |j|dƒ¡| t¡|dW5QRXdS)Nc@s$eZdZdZdZdZedd„ƒZdS)z4TestEnum.test_missing_value_bad_input..LabelrrkrlcSs|jSr³rr¨rXrXrYr©I szDTestEnum.test_missing_value_bad_input..Label._missing_value_NrªrXrXrXrYr£E s r£ruT)rrèržr@r#r¦rXrXrYÚtest_missing_value_bad_inputD s z%TestEnum.test_missing_value_bad_inputc CslGdd„dtƒ}| t¡ |jW5QRX| t¡|dƒW5QRX| t¡|dW5QRXdS)Nc@s eZdZdZdZedd„ƒZdS)z4TestEnum.test_missing_name_bad_return..LabelrkrlcSsdSr³rXrŸrXrXrYr®U szCTestEnum.test_missing_name_bad_return..Label._missing_name_Nr¯rXrXrXrYr£R sr£r¤)rr@r§r¤rœr#r¦rXrXrYÚtest_missing_name_bad_returnQ s   z%TestEnum.test_missing_name_bad_returncCsdd„}| t|¡dS)NcSs4Gdd„dtƒ}Gdd„d|ƒ}Gdd„d|ƒ}dS)Nc@seZdZdd„ZdS)z>TestEnum.test_extending2..bad_extension..ShadecSst|jƒdSr³)r•r¬rŒrXrXrYÚshadec szDTestEnum.test_extending2..bad_extension..Shade.shadeN©rfrgrhr³rXrXrXrYÚShadeb srµc@seZdZdZdZdZdS)z>TestEnum.test_extending2..bad_extension..ColorrkrlrmNrörXrXrXrYrÃe srÃc@seZdZdZdZdZdS)zBTestEnum.test_extending2..bad_extension..MoreColorrurvr2Nr÷rXrXrXrYrúi srúrÄ)rµrÃrúrXrXrYrûa sz/TestEnum.test_extending2..bad_extensionrarürXrXrYÚtest_extending2` s zTestEnum.test_extending2cCsFGdd„dtƒ}Gdd„d|ƒ}Gdd„d|ƒ}| |j ¡d¡dS)Nc@seZdZdd„ZdS)z'TestEnum.test_extending3..ShadecSs|jSr³r«rŒrXrXrYr³q sz-TestEnum.test_extending3..Shade.shadeNr´rXrXrXrYrµp srµc@seZdZdd„ZdS)z'TestEnum.test_extending3..ColorcSs d|jS)Nz %s hexlified!r™rŒrXrXrYr¨t sz+TestEnum.test_extending3..Color.hexN)rfrgrhr¨rXrXrXrYrÃs srÃc@seZdZdZdZdZdS)z+TestEnum.test_extending3..MoreColorrurvr2Nr÷rXrXrXrYrúv srúz 5 hexlified!)rrèrør¨)r`rµrÃrúrXrXrYÚtest_extending3o szTestEnum.test_extending3cCs˜Gdd„dtƒ}| t|ƒ|j|j|j|jg¡| |jjd¡| |jjd¡| |j|k¡| |dƒ|j¡| |d|j¡| |jjd¡dS)Nc@s eZdZdZdZdZdZdZdS)z'TestEnum.test_extending5..Colorzred green blue valuerkrlrmruN)rfrgrhr¿rÀrÁrÂrérXrXrXrYrÃ} s rÃrérurk) rrèr´rÀrÁrÂrér¬rOrÅrXrXrYÚtest_extending5| s zTestEnum.test_extending5©r ÚContinuez!Request received, please continue©éezSwitching Protocolsz.Switching to new protocol; obey Upgrade header)éfÚ ProcessingcCsdd„}| t|¡dS)NcSs$Gdd„dtƒ}Gdd„dtƒ}dS)Nc@seZdZdZdZdZdS)zCTestEnum.test_no_duplicates..bad_duplicates..Color1rkrlrmNrörXrXrXrYÚColor1’ sr¿c@seZdZdZdZdZdZdS)zCTestEnum.test_no_duplicates..bad_duplicates..Color2rkrlrmN)rfrgrhrÀrÁrÂZgrenerXrXrXrYÚColor2– srÀ)r)r¿rÀrXrXrYÚbad_duplicates‘ sz3TestEnum.test_no_duplicates..bad_duplicatesrQ)r`rÁrXrXrYÚtest_no_duplicates s zTestEnum.test_no_duplicatescCs&Gdd„dtƒ}Gdd„dttƒ}dS)Nc@seZdZdZdZdZdS)z0TestEnum.test_no_duplicates_kinda..SillyrkrrmN©rfrgrhr¢r£r¬rXrXrXrYÚSillyž srÄc@seZdZdZdZdZdZdS)z2TestEnum.test_no_duplicates_kinda..SillierrkrlrmruN©rfrgrhÚsingler¬ÚtriplerérXrXrXrYÚSillier¢ srÈ)rr©r`rÄrÈrXrXrYÚtest_no_duplicates_kinda sz!TestEnum.test_no_duplicates_kindacCs:Gdd„dtƒ}| t|jjdƒd¡| |jjd¡dS)Nc@s@eZdZdZdZdZdZdZdZdZ dZ d d „Z e d d „ƒZ d S)z"TestEnum.test_init..Planet©çIæTf|ÑDç BA©çQX4EçöWA©g ÂoÞÅEg§TXA©g¶ ¥ñ ÿàDg(ëIA©gÏc‹™’Ž˜Eg€† ‘A©g™[‘\h}Eg,A©g#'?‚TöQEg€ý_xA©göJáÇ-UEg™wAcSs||_||_dSr³©ÚmassÚradius)r`rØrÙrXrXrYr_² sz+TestEnum.test_init..Planet.__init__cSsd}||j|j|jS©Nç yдWÒ=rשr`ÚGrXrXrYÚsurface_gravityµ sz2TestEnum.test_init..Planet.surface_gravityN)rfrgrhÚMERCURYÚVENUSÚEARTHÚMARSÚJUPITERÚSATURNÚURANUSÚNEPTUNEr_r®rÞrXrXrXrYÚPlanet© srçrlçš™™™™™#@rÑ©rrèÚroundrárÞré©r`rçrXrXrYÚ test_init¨ szTestEnum.test_initcCsfGdd„dttƒ}Gdd„d|ƒ}| |jjd¡| |jjd¡| |jjd¡| |jjd¡dS) Nc@s$eZdZdZdd„Zedd„ƒZdS)zATestEnum.test_init_and_shadowing_attribute..SelectionEnumúdb userc_s*t|jƒ}t ||d¡}||_||_|Sr‹)r³rýrrÚ_countr©rrarbÚcountr¨rXrXrYrÀ s  zITestEnum.test_init_and_shadowing_attribute..SelectionEnum.__new__c_s |f|Sr³rX©r¬r¡rðr4rarbrXrXrYÚ_generate_next_value_Æ szWTestEnum.test_init_and_shadowing_attribute..SelectionEnum._generate_next_value_N©rfrgrhrðrÚ staticmethodròrXrXrXrYÚ SelectionEnum¾ srõc@seZdZdZdZdZdS)zDTestEnum.test_init_and_shadowing_attribute..DeviceTypeSourcez user systemúUser controlledúSystem controlledN)rfrgrhr¿ÚuserÚsystemrXrXrXrYÚDeviceTypeSourceÉ srúrùr÷rørö)rrrèrùÚdbrø)r`rõrúrXrXrYÚ!test_init_and_shadowing_attribute½ s  z*TestEnum.test_init_and_shadowing_attributecCsfGdd„dtƒ}Gdd„d|ƒ}| t|ƒ|j|j|jg¡| |jjdg¡| |dgƒ|j¡dS)Nc@seZdZdd„ZdS)z6TestEnum.test_nonhash_value..AutoNumberInAListcSs$t|jƒdg}t |¡}||_|Sr#r‹rŒrXrXrYrÔ s z>TestEnum.test_nonhash_value..AutoNumberInAList.__new__Nr0rXrXrXrYÚAutoNumberInAListÓ srýc@seZdZdZdZdZdZdS)z1TestEnum.test_nonhash_value..ColorInAListr½rXNrŽrXrXrXrYÚ ColorInAListÙ srþrk)rrèr´rÀrÁrÂré)r`rýrþrXrXrYÚtest_nonhash_valueÒ s zTestEnum.test_nonhash_valuecCstGdd„dtƒ}| t|ƒ|j|j|j|jg¡| |j|j¡| |jj d¡| |j j d¡| |jj d¡dS)Nc@s8eZdZdZeƒZeƒZeƒZdZeƒZ eƒZ eƒZ dS)z>TestEnum.test_number_reset_and_order_cleanup..ConfusedzONE TWO THREE UNO DOS TRES FOURrkN) rfrgrhr¿r"rárârãZUNOÚDOSÚTRESÚFOURrXrXrXrYÚConfusedã srrlrmru) rrèr´rárârãrr©rrr©r`rrXrXrYÚ#test_number_reset_and_order_cleanupâ s  z,TestEnum.test_number_reset_and_order_cleanupcCs^Gdd„dttƒ}Gdd„d|ƒ}| |jd¡| |dƒ|j¡| t|ƒ|j|jg¡dS)Nc@seZdZdd„ZdS)zHTestEnum.test_conflicting_types_resolved_in_new..LabelledIntEnumcWs$|\}}t ||¡}||_||_|Sr³)rþrÚlabelr)rrarérr¨rXrXrYrô s  zPTestEnum.test_conflicting_types_resolved_in_new..LabelledIntEnum.__new__Nr0rXrXrXrYÚLabelledIntEnumó src@seZdZdZdZdS)zETestEnum.test_conflicting_types_resolved_in_new..LabelledList)rkZ Unprocessed)rlzPayment CompleteN)rfrgrhÚ unprocessedÚpayment_completerXrXrXrYÚ LabelledListû sr rk)rþrrèrr´r )r`rr rXrXrYÚ&test_conflicting_types_resolved_in_newò s z/TestEnum.test_conflicting_types_resolved_in_newcCs`Gdd„dtƒ}| t|ƒ|j|j|jg¡| |jjd¡| |jjd¡| |jjd¡dS)Nc@s"eZdZdZeƒZeƒZeƒZdS)z(TestEnum.test_auto_number..Colorúred blue greenN©rfrgrhr¿r"rÀrÂrÁrXrXrXrYrà srÃrkrlrm©rrèr´rÀrÂrÁrérÅrXrXrYÚtest_auto_number s zTestEnum.test_auto_numbercCs`Gdd„dtƒ}| t|ƒ|j|j|jg¡| |jjd¡| |jjd¡| |jjd¡dS)Nc@s*eZdZdZdd„ZeƒZeƒZeƒZdS)z&TestEnum.test_auto_name..Colorr cSs|Sr³rX©r¬r¡rðÚlastrXrXrYrò sz.Color._generate_next_value_N) rfrgrhr¿ròr"rÀrÂrÁrXrXrXrYrà s rÃrÀrÂrÁrrÅrXrXrYÚtest_auto_name s zTestEnum.test_auto_namecCspGdd„dtƒ}Gdd„d|ƒ}| t|ƒ|j|j|jg¡| |jjd¡| |jjd¡| |jjd¡dS)Nc@seZdZdd„ZdS)z5TestEnum.test_auto_name_inherit..AutoNameEnumcSs|Sr³rXrrXrXrYrò szKTestEnum.test_auto_name_inherit..AutoNameEnum._generate_next_value_N©rfrgrhròrXrXrXrYÚ AutoNameEnum src@s"eZdZdZeƒZeƒZeƒZdS)z.TestEnum.test_auto_name_inherit..Colorr Nr rXrXrXrYrÃ! srÃrÀrÂrÁr)r`rrÃrXrXrYÚtest_auto_name_inherit s zTestEnum.test_auto_name_inheritcCs$Gdd„dtƒ}| |jjd¡dS)Nc@seZdZdZdZeƒZdS)z)TestEnum.test_auto_garbage..Colorúred bluerÀN©rfrgrhr¿rÀr"rÂrXrXrXrYrÃ- srÃrk)rrèrÂrérÅrXrXrYÚtest_auto_garbage, szTestEnum.test_auto_garbagecCs`Gdd„dtƒ}| t|ƒ|j|j|jg¡| |jjd¡| |jjd¡| |jjd¡dS)Nc@seZdZdZdZdZeƒZdS)z3TestEnum.test_auto_garbage_corrected..Colorr rÀrlN)rfrgrhr¿rÀrÂr"rÁrXrXrXrYrÃ4 srÃrÀrlrmrrÅrXrXrYÚtest_auto_garbage_corrected3 s z$TestEnum.test_auto_garbage_correctedcCsxGdd„dtƒ}| t|ƒ|j|j|jg¡| dd„|Dƒdddg¡Gdd „d tƒ}| |j|j|jgt|ƒ¡dS) Nc@s"eZdZdZeƒZefZeƒZdS)z/TestEnum.test_duplicate_auto..MoreDupesúA B CN©rfrgrhr¿r"rÄrÅrÆrXrXrXrYÚ MoreDupesA srcSsg|] }|j‘qSrXr™ršrXrXrYrG sz0TestEnum.test_duplicate_auto..rk)rkrlc@s&eZdZdZeƒZZeƒZeƒZdS)z+TestEnum.test_duplicate_auto..DupesrN© rfrgrhr¿r"rfZprimerorirrXrXrXrYÚDupesI s r) rrèr´rÄrÅrÆrfrir)r`rrrXrXrYÚtest_duplicate_auto? s zTestEnum.test_duplicate_autocCs¼Gdd„dtƒ}Gdd„d|ƒ}| t|ƒ|j|jg¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd¡| |jjd ¡dS) Nc@s$eZdZdZdd„Zedd„ƒZdS)z9TestEnum.test_auto_value_with_auto..SelectionEnumríc_s0t|jƒ}t |¡}||_||_|\|_|_|Sr³)r³rýrrrîrrûrørïrXrXrYrT s    zATestEnum.test_auto_value_with_auto..SelectionEnum.__new__c_s |f|Sr³rXrñrXrXrYrò[ szOTestEnum.test_auto_value_with_auto..SelectionEnum._generate_next_value_NrórXrXrXrYrõR srõc@s eZdZdZedƒZedƒZdS)z0TestEnum.test_auto_value_with_auto..Testú this thatrrN)rfrgrhr¿r"rrrXrXrXrYÚTest_ sr!r©rrrr©rrr© rrèr´rrr¬rérûrø©r`rõr!rXrXrYÚtest_auto_value_with_autoP s z"TestEnum.test_auto_value_with_autocCs¼Gdd„dtƒ}Gdd„d|ƒ}| t|ƒ|j|jg¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd¡| |jjd ¡dS) Nc@s$eZdZdZdd„Zedd„ƒZdS)z>TestEnum.test_auto_value_with_autovalue..SelectionEnumríc_s$t|jƒ}t |¡}||_||_|Sr³)r³rýrrrîrrïrXrXrYrr s   zFTestEnum.test_auto_value_with_autovalue..SelectionEnum.__new__c_s |f|Sr³rXrñrXrXrYròx szTTestEnum.test_auto_value_with_autovalue..SelectionEnum._generate_next_value_NrórXrXrXrYrõp srõc@seZdZdZdZdZdS)z5TestEnum.test_auto_value_with_autovalue..Testr rrN)rfrgrhr¿rrrXrXrXrYr!| sr!rr"rrr#rr$r%rXrXrYÚtest_auto_value_with_autovaluen s z'TestEnum.test_auto_value_with_autovaluecCsdGdd„dtƒ}| |jj|jj|jjfddddif¡| |jj|jj|jjfdddd if¡dS) Nc@s8eZdZdZedddidZedddidZdd „Zd S) z)TestEnum.test_auto_and_kwds..ItemúA Br rÀT)ÚsizeÚreqr FcSs t |¡}||_||_||_|Sr³)rrrr)r*)rrér)r*r¨rXrXrYr‘ s  z1TestEnum.test_auto_and_kwds..Item.__new__N©rfrgrhr¿r"rÄrÅrrXrXrXrYÚItemŒ sr,rkr rÀTrlr F)rrèrÄrér)r*rÅ©r`r,rXrXrYÚtest_auto_and_kwds‹ s (zTestEnum.test_auto_and_kwdscCs t di¡}| t|ƒd¡dS)NÚFoor)rSrrèr³)r`ÚemptyrXrXrYÚtest_empty_with_functional_apiš s z'TestEnum.test_empty_with_functional_apicCs:Gdd„dtƒ}| t|jjdƒd¡| |jjd¡dS)Nc@s<eZdZdZdZdZdZdZdZdZ dZ d Z e d d „ƒZ d S) z'TestEnum.test_auto_init..Planetz mass radiusrËrÎrÑrÒrÓrÔrÕrÖcSsd}||j|j|jSrÚr×rÜrXrXrYrÞ© sz7TestEnum.test_auto_init..Planet.surface_gravityN)rfrgrhrðrßràrárârãrärårær®rÞrXrXrXrYrçŸ srçrlrèrÑrérërXrXrYÚtest_auto_initž szTestEnum.test_auto_initcCstGdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡dS) Nc@seZdZdZdZdZdZdS)z1TestEnum.test_auto_init_with_value..Colorz value, rgb)rk©rkrr)rl©rrkr)rm©rrrkN)rfrgrhrðÚREDÚBLUEÚGREENrXrXrXrYrò srÃrkrlrmr3r4r5)rrèr6rér7r8ÚrgbrÅrXrXrYÚtest_auto_init_with_value± sz"TestEnum.test_auto_init_with_valuecCs4Gdd„dtƒ}| |j|jk¡| t|d¡dS)Nc@seZdZeZdZdZdS)z'TestEnum.test_noalias..SettingsrkN)rfrgrhrÚ _settings_rÀÚrojorXrXrXrYÚSettings¿ sr=rk)rrMrÀr<r@rÍ)r`r=rXrXrYÚ test_noalias¾ szTestEnum.test_noaliascCsRGdd„dttƒ}| |jd¡| |jd¡| |jjd¡| |jjd¡dS)Nc@seZdZdZdZdZdZdS)z*TestEnum.test_auto_and_init..Fieldú TYPE STARTú value __doc__úChar, Date, Logical, etc.úField offset in recordN)rfrgrhr¿rðÚTYPEÚSTARTrXrXrXrYÚFieldÇ srErkrlrArB)rþrrèrCrDr·©r`rErXrXrYÚtest_auto_and_initÆ s zTestEnum.test_auto_and_initcCsPGdd„dtƒ}| |jd¡| |jd¡| |jjd¡| |jjd¡dS)Nc@s eZdZdZdZdZdZdZdS)z+TestEnum.test_auto_and_start..Fieldr?rr@rArBN)rfrgrhr¿Ú_start_rðrCrDrXrXrXrYrEÒ s rErrkrArB)rrèrCrDr·rFrXrXrYÚtest_auto_and_startÑ s zTestEnum.test_auto_and_startcCsŽGdd„dttƒ}| |jd¡| |jd¡| |jd¡| |jd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡dS) Nc@s$eZdZdZdZdZdZdZdZdS)z:TestEnum.test_auto_and_init_and_some_values..FieldúTYPE START BLAH BELCHr@rArB©rvú test blahú test belchN© rfrgrhr¿rðrCrDÚBLAHÚBELCHrXrXrXrYrEÞ s rErkrlrvr2rArBrLrM)rþrrèrCrDrOrPr·rFrXrXrYÚ"test_auto_and_init_and_some_valuesÝ sz+TestEnum.test_auto_and_init_and_some_valuesc Cs.| td¡Gdd„dttƒ}W5QRXdS)Nz8Field\.BLAH: number of fields provided do not match initc@s$eZdZdZdZdZdZdZdZdS)zFTestEnum.test_auto_and_init_w_value_and_too_many_values..FieldrJr@)rkrA)rlrB)rvr2rL)rwrMNrNrXrXrXrYrEð s rE)r\rÍrþrrFrXrXrYÚ.test_auto_and_init_w_value_and_too_many_valuesî sz7TestEnum.test_auto_and_init_w_value_and_too_many_valuescCsÎGdd„dttƒ}| |jd¡| |jd¡| |jd¡| |jd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd¡dS)Nc@s$eZdZdZdZdZdZdZdZdS)zBTestEnum.test_auto_and_init_and_some_complex_values..FieldrJzvalue __doc__ help)rAú!fields composed of character data)rBú#where the data starts in the record)rvrLú some help)rMúsome more helpNrNrXrXrXrYrEù s rErkrlrvr2rArBrLrMrSrTrUrV) rþrrèrCrDrOrPr·ÚhelprFrXrXrYÚ*test_auto_and_init_and_some_complex_valuesø sz3TestEnum.test_auto_and_init_and_some_complex_valuescCsœGdd„dtƒ}Gdd„d|ƒ}| |jd¡| |jd¡| |jd¡| |jd¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd ¡dS) Nc@seZdZdZdZdS)z7TestEnum.test_auto_and_init_inherited..AutoEnumrr@N)rfrgrhrHrðrXrXrXrYÚAutoEnum srYc@s eZdZdZdZdZdZdZdS)z4TestEnum.test_auto_and_init_inherited..FieldrJrArBrKrMN)rfrgrhr¿rCrDrOrPrXrXrXrYrE s rErrkrvr2rArBrLrM)rrèrCrDrOrPr·)r`rYrErXrXrYÚtest_auto_and_init_inherited sz%TestEnum.test_auto_and_init_inheritedc Cs.| td¡Gdd„dttƒ}W5QRXdS)Nz_value_ not set in __new__c@s8eZdZdZdd„Zdd„Zdd„ZdZd Zd Z d Z d S) z3TestEnum.test_missing_value_error..Combinedúvalue sequencecSs|jSr³©Úsequence©rœrXrXrYr±% r²z.Combined.cWsHt ||¡}d|kr0| dd¡\}}| d¡}n|}d}||_||_|S)Nú(rkz ))rrr)ÚstripÚfis_nameÚsegment)rrérar#rarbrXrXrYr' s  z;TestEnum.test_missing_value_error..Combined.__new__cSsd|jj|jfS©Nú<%s.%s>©rerfr†rŒrXrXrYr&3 sz.Combined.__repr__)zAn$(1,2)r)zAn$(3,2)rk)zAn$(5,1)rl)zBn$rmN) rfrgrhrðr¿rr&Úkey_typeÚ company_idrrörXrXrXrYÚCombined" s rh)r\rÍrr)r`rhrXrXrYÚtest_missing_value_error sz!TestEnum.test_missing_value_errorcCsNGdd„dtjƒ}| |j|jgt|ƒ¡| |jjd¡| |jjd¡dS)Nc@s(eZdZdZe ¡Zee ¡BZdZdS)z(TestEnum.test_auto_and_enum..Fooza b crlN) rfrgrhr¿rSr"rSr{r¡rXrXrXrYr/= s r/rkrm)rSrrèrSr¡r´rér{)r`r/rXrXrYÚtest_auto_and_enum< szTestEnum.test_auto_and_enumcCs4Gdd„dtƒ}Gdd„d|ƒ}| |jjd¡dS)Nc@seZdZdd„ZdS)z1TestEnum.test_multiple_arg_auto..AutoNamec_s |f|Sr³rX©r¬r¡rðrrarbrXrXrYròI szGTestEnum.test_multiple_arg_auto..AutoName._generate_next_value_NrrXrXrXrYÚAutoNameH srlc@s$eZdZdZeddƒZeddƒZdS)z/TestEnum.test_multiple_arg_auto..Planetúvalue mass radiusrÌrÍrÏrÐN©rfrgrhrðr"rßràrXrXrXrYrçL s rçrß©rrèrßré©r`rlrçrXrXrYÚtest_multiple_arg_autoG szTestEnum.test_multiple_arg_autocCs4Gdd„dtƒ}Gdd„d|ƒ}| |jjd¡dS)Nc@seZdZdd„ZdS)z3TestEnum.test_auto_w_multiple_arg..AutoNamec_s|r|f|S|SdSr³rXrkrXrXrYròT s zITestEnum.test_auto_w_multiple_arg..AutoName._generate_next_value_NrrXrXrXrYrlS srlc@s(eZdZdZeƒddfZeƒddfZdS)z1TestEnum.test_auto_w_multiple_arg..PlanetrmrÌrÍrÏrÐNrnrXrXrXrYrçZ s rçrßrorprXrXrYÚtest_auto_w_multiple_argR sz!TestEnum.test_auto_w_multiple_argcCs4Gdd„dtƒ}Gdd„d|ƒ}| |jjd¡dS)Nc@seZdZdd„ZdS)z1TestEnum.test_auto_gnv_and_init..AutoNamec_s |f|Sr³rXrkrXrXrYròb szGTestEnum.test_auto_gnv_and_init..AutoName._generate_next_value_NrrXrXrXrYrla srlc@seZdZdZdZdZdS)z/TestEnum.test_auto_gnv_and_init..PlanetrmrËrÎN)rfrgrhrðrßràrXrXrXrYrçe srçrßrorprXrXrYÚtest_auto_gnv_and_init` szTestEnum.test_auto_gnv_and_initcCsÜGdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| |j jd ¡| |j jd ¡| |j jd ¡| |j jd ¡| |j jd¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |d ƒ|j¡|  |d ƒ|j¡|  |d ƒ|j ¡|  |d ƒ|j ¡|  |d ƒ|j ¡|  |dƒ|j ¡dS)Nc@s$eZdZdZdZeZdZdZdZ dS)z:TestEnum.test_MultiValue_with_init_wo_value..Colorú color r g br½©rÀrkrlrm©rÁrurvr2©rÂrwrÛrqN© rfrgrhrðr¿r$r;rÀrÁrÂrXrXrXrYrà s rÃrÀrkrlrmrÁrurvr2rÂrwrÛrq) rrèrÀrér„ÚrÚgr{rÁrÂr©rÅrXrXrYÚ"test_MultiValue_with_init_wo_value€ s8z+TestEnum.test_MultiValue_with_init_wo_valuecCs¬Gdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |d ƒ|j¡|  |d ƒ|j¡|  |d ƒ|j¡|  |d ƒ|j¡|  |d ƒ|j¡|  |dƒ|j¡dS)Nc@s$eZdZdZdZeZdZdZdZ dS)z9TestEnum.test_MultiValue_with_init_w_value..Colorz value r g br½rurvrwNrxrXrXrXrYrÃ¥ s rÃrÀrkrlrmrÁrurvr2rÂrwrÛrq) rrèrÀréryrzr{rÁrÂr©rÅrXrXrYÚ!test_MultiValue_with_init_w_value¤ s2z*TestEnum.test_MultiValue_with_init_w_valuecCsGdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd ¡| |j jd ¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |dƒ|j¡|  |d ƒ|j¡|  |d ƒ|j¡|  |d ƒ|j¡|  |d ƒ|j¡|  |d ƒ|j ¡|  |dƒ|j ¡|  |dƒ|j ¡|  |dƒ|j ¡|  |dƒ|j ¡dS)Nc@s$eZdZdZdZeZdZdZdZ dS)zGTestEnum.test_MultiValue_with_init_wo_value_w_autonumber..Colorrtr½)rÀrxrrrâ)rÁræé2é<)rÂéFéPéZNrxrXrXrXrYrÃÆ s rÃrkrÀrxrrrârlrÁrær}r~rmrÂrr€r) r rèrÀrér„ryrzr{rÁrÂr©rÅrXrXrYÚ/test_MultiValue_with_init_wo_value_w_autonumberÅ s>z8TestEnum.test_MultiValue_with_init_wo_value_w_autonumbercCshGdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡| |dƒ|j¡| |dƒ|j¡dS)Nc@s(eZdZeefZdZdZdZdZ dZ dS)zETestEnum.test_multivalue_and_autonumber_wo_init_wo_value..Dayú one two threerw)Ú21r¢)Ú22r£)Z23rîN) rfrgrhr$rr;r¿rHr¢r£rîrXrXrXrYÚDayí s r†rwrÛrqr„r¢)rrèr¢rér£rî)r`r†rXrXrYÚ/test_multivalue_and_autonumber_wo_init_wo_valueì s z8TestEnum.test_multivalue_and_autonumber_wo_init_wo_valuecCs˜Gdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |dƒ|j¡| |d ƒ|j¡dS) Nc@sFeZdZeefZdZdZdZdZ e ƒdfZ e ƒdfZ dZ e ƒdfZd S) zKTestEnum.test_multivalue_and_autonumber_wo_init_w_some_value..Colorz#BLACK RED BLUE YELLOW GREEN MAGENTArë)rPZText0)éÎÿÿÿZText1ÚText2ZText3)éºÿÿÿZText4ZText5N)rfrgrhr$rr;r¿rðÚBLACKr6r"r7ÚYELLOWr8ÚMAGENTArXrXrXrYrÃû s  rÃrPrˆiÏÿÿÿiÐÿÿÿrŠi»ÿÿÿr‰) rrèr‹rér6r7rŒr8rrÅrXrXrYÚ3test_multivalue_and_autonumber_wo_init_w_some_valueú s z.AutoN)rfrgrhrr;rXrXrXrYÚAuto src@seZdZeƒZeƒZdZdS)zHTestEnum.test_combine_new_settings_with_old_settings..AutoUniquerkN)rfrgrhr"rOZBLUHZICKrXrXrXrYÚ AutoUnique sr)rr@rœ)r`rrrXrXrYÚ+test_combine_new_settings_with_old_settings s z4TestEnum.test_combine_new_settings_with_old_settingscCsXGdd„dttƒ}| t|dƒ¡| t|dƒ¡| t|dƒ¡| t|jtƒ¡dS)Nc@sŒeZdZdZdZeZdZeƒZ e dƒD]Z e dfe de <q&e dƒD]Z e dd fe d e <qDe d ƒD]Z e d d fe de <qfe Z eZdS)z'TestEnum.test_timedelta..Periodz3 different lengths of time z value periodzPeriod iéÚdayzday_%drwrwÚweekzweek_%dr}rârÓzmonth_%dN)rfrgrhr·rðrr;Ú_ignore_Úvarsr¿r—r-Úday_1ZOneDayZweek_1ZOneWeekrXrXrXrYr¿ s   r¿r•r-)r8rrMrCrOrùr—rÀrXrXrYÚtest_timedelta s zTestEnum.test_timedeltacCs(Gdd„dtƒ}| |j|jd¡dS)Nc@s4eZdZeGdd„deƒƒZeGdd„deƒƒZdS)z!TestEnum.test_skip..enumAc@seZdZdZdZdS)z'TestEnum.test_skip..enumA.enumBrSr{N©rfrgrhZelementAZelementBrXrXrXrYÚenumB/ sršc@seZdZdZdZdS)z'TestEnum.test_skip..enumA.enumCr¡rÈN©rfrgrhZelementCZelementDrXrXrXrYÚenumC3 srœN)rfrgrhr rršrœrXrXrXrYÚenumA. srrš©rr©ršrã©r`rrXrXrYÚ test_skip- s zTestEnum.test_skipcCs(Gdd„dtƒ}| |j|jd¡dS)Nc@s4eZdZeGdd„deƒƒZeGdd„deƒƒZdS)z&TestEnum.test_nonmember..enumAc@seZdZdZdZdS)z,TestEnum.test_nonmember..enumA.enumBrSr{Nr™rXrXrXrYrš; sršc@seZdZdZdZdS)z,TestEnum.test_nonmember..enumA.enumCr¡rÈNr›rXrXrXrYrœ? srœN)rfrgrhr&rršrœrXrXrXrYr: srršržrŸrXrXrYÚtest_nonmember9 s zTestEnum.test_nonmembercCsbGdd„dtƒ}| |j|jgt|ƒ¡| ttg|j¡| | d¡d¡| | d¡d¡dS)Nc@s<eZdZdZeeƒZeeƒZe dd„ƒZ dd„Z dd„Z dS) z:TestEnum.test_member_with_external_functions..Funcz an_int a_strcSsdd„t|ƒDƒS)NcSsg|] }|j‘qSrXr™ršrXrXrYrL szTTestEnum.test_member_with_external_functions..Func.types..©r´ržrXrXrYÚtypesJ sz@TestEnum.test_member_with_external_functions..Func.typescSsd|jj|jfSrc©rerfr¬rŒrXrXrYr&M szCTestEnum.test_member_with_external_functions..Func.__repr__c_s |j||ŽSr³r™©r`rarbrXrXrYÚ__call__O szCTestEnum.test_member_with_external_functions..Func.__call__N) rfrgrhr¿r%rþÚan_intrÚa_strr²r£r&r¦rXrXrXrYÚFuncF s r©rwÚBlahBlah)rrèr§r¨r´rþrr£©r`r©rXrXrYÚ#test_member_with_external_functionsE s  z,TestEnum.test_member_with_external_functionscCshGdd„dtƒ}| |j|jgt|ƒ¡| |jj|jjg|j¡| | ¡d¡| | d¡d¡dS)Nc@sDeZdZdZedd„ƒZedd„ƒZedd„ƒZdd „Z d d „Z d S) z:TestEnum.test_member_with_internal_functions..Funcz haha hehecSsdS)NÚhaharXrXrXrXrYr­Z sz?TestEnum.test_member_with_internal_functions..Func.hahacSsd|S)Nzhehe -- what a name! %s!rXr«rXrXrYÚhehe] sz?TestEnum.test_member_with_internal_functions..Func.hehecSsdd„t|ƒDƒS)NcSsg|] }|j‘qSrXr™ršrXrXrYrb szTTestEnum.test_member_with_internal_functions..Func.types..r¢ržrXrXrYr£` sz@TestEnum.test_member_with_internal_functions..Func.typescSsd|jj|jfSrcr¤rŒrXrXrYr&c szCTestEnum.test_member_with_internal_functions..Func.__repr__c_s |j||ŽSr³r™r¥rXrXrYr¦e szCTestEnum.test_member_with_internal_functions..Func.__call__N) rfrgrhr¿r%r­r®r²r£r&r¦rXrXrXrYr©X s   r©r­rªzhehe -- what a name! BlahBlah!)rrèr­r®r´rér£r«rXrXrYÚ#test_member_with_internal_functionsW s z,TestEnum.test_member_with_internal_functionscCsHGdd„dtƒ}| |jd¡| tdt|dd¡| tdt|d¡dS)Nc@seZdZedƒZedƒZdS)z9TestEnum.test_constantness_of_constants..Universeçôiý! @rÛN)rfrgrhrrÀrÝrXrXrXrYÚUniversen sr±r°úcannot rebind constantrÀrqúcannot delete constant)rrèrÀr\r§rNr¨©r`r±rXrXrYÚtest_constantness_of_constantsm sz'TestEnum.test_constantness_of_constantscCs6Gdd„dtƒ}| |jd¡| |jd|j¡dS)Nc@s eZdZedƒZedeƒZdS)z=TestEnum.test_math_and_stuff_with_constants..Universer°rlN)rfrgrhrrÀrÁrXrXrXrYr±v sr±r°rl)rrèrÀrÁr´rXrXrYÚ"test_math_and_stuff_with_constantsu sz+TestEnum.test_math_and_stuff_with_constantscCs`Gdd„dtƒ}| t|ƒ|j|j|j|jg¡| t|jƒ|j|jg¡| |j|jk¡dS)Nc@s4eZdZdZeƒZeƒZeƒZeƒZe eeBƒZ dS)z:TestEnum.test_constant_with_auto_is_updated..Fruitzapple banana lemon orangeN) rfrgrhr¿r"Úappler’ÚlemonÚorangerÚ CitrusTypesrXrXrXrYr} s r) rrèr´r·r’r¸r¹rºrO)r`rrXrXrYÚ"test_constant_with_auto_is_updated| s z+TestEnum.test_constant_with_auto_is_updatedc Cs.Gdd„dtƒ}t|ƒD]\}}| ||j¡q|}| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| |jjd ¡| |j jd ¡| |j jd ¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd!¡| |jjd"¡| |jjd#¡Gd$d„dtƒ}t|ƒD]\}}| ||jd¡q\|}| |jjd¡| |jjd%¡| |jjd¡| |jjd&¡| |jjd ¡| |jjd'¡| |j jd ¡| |j jd(¡| |j jd¡| |j jd)¡| |j jd¡| |j jd*¡| |j jd¡| |j jd+¡| |j jd¡| |j jd,¡| |jjd¡| |jjd-¡| |jjd¡| |jjd.¡| |jjd!¡| |jjd/¡| t¡Gd0d„dtƒ}W5QRX| t¡Gd1d„dtƒ}W5QRXdS)2Nc@sDeZdZdZdd„ZdZdZdZdZdZ d Z d Z d Z d Z d ZdZdS)ú5TestEnum.test_order_as_function..TestSequencezvalue, sequencecSs|jSr³r\©r%rXrXrYr± r²ú>TestEnum.test_order_as_function..TestSequence.©úAn$(1,6)r©úAn$(7,2)rk©úAn$(9,4)rl©ú Hn$(13,6)rm©ú Cn$(19,3)ru©úZn$(1,1)rv©úBn(2,1)r2©ÚFnrw©úRn$(5,1)rÛ©úSn$(6,1)rq©úQn$(7,2)rxN©rfrgrhrðr¿Úitem_idrgÚ warehouse_noÚcompanyrfÚ availableÚ contract_itemÚsales_categoryÚ gl_categoryÚwarehouse_categoryÚ inv_unitsrXrXrXrYÚ TestSequence‹ srßrÖrÀrrgrÂrkr×rÄrlrØrÆrmrfrÈrurÙrÊrvrÚrÌr2rÛrÎrwrÜrÐrÛrÝrÒrqrÞrÔrxc@s@eZdZdd„ZdZdZdZdZdZdZ d Z d Z d Z d Z d ZdS)r¼cSs |jdSr#r™r½rXrXrYr±¿ r²r¾r¿rÁrÃrÅrÇrÉrËrÍrÏrÑrÓN)rfrgrhr¿rÖrgr×rØrfrÙrÚrÛrÜrÝrÞrXrXrXrYrß¾ sr¿rÁrÃrÅrÇrÉrËrÍrÏrÑrÓc@sDeZdZdZdd„ZdZdZdZdZdZ d Z d Z d Z d Z d ZdZdS)r¼r]cSs|jSr³r\r½rXrXrYr±è r²r¾r¿rÁrÃrÅrÇrÉrËrÍrÏrÑrÓNrÕrXrXrXrYrßæ sc@sDeZdZdZdd„ZdZdZdZdZdZ d Z d Z d Z d Z d ZdZdS)r¼r]cSs|jSr³r\r½rXrXrYr±ø r²r¾r¿rÃrÅrÁrÓrÉrËrÍrÇrÏrÑN)rfrgrhrðr¿rÖr×rØrgrÞrÙrÚrÛrfrÜrÝrXrXrXrYrßö s)rr(rèr]rÖr¬rérgr×rØrfrÙrÚrÛrÜrÝrÞr@rÍ)r`rßr-r%ÚtsrXrXrYÚtest_order_as_function‰ s†   zTestEnum.test_order_as_functioncCsXGdd„dtƒ}Gdd„d|ƒ}t|ƒD]\}}| ||j¡q(|}| |jjd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd ¡| |jjd ¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |jjd¡| |jjd¡| |jjd¡| |jjd ¡| |jjd!¡| |jjd"¡| |jjd#¡| |jjd$¡| |jjd%¡dS)&Nc@seZdZdZdd„ZdS)z;TestEnum.test_order_as_function_in_subclass..Parentr[cSs|jSr³r\r^rXrXrYr± r²zDTestEnum.test_order_as_function_in_subclass..Parent.N)rfrgrhrðr¿rXrXrXrYÚParentsrâc@s8eZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d S) z:TestEnum.test_order_as_function_in_subclass..Childr¿rÁrÃrÅrÇrÉrËrÍrÏrÑrÓN)rfrgrhrÖrgr×rØrfrÙrÚrÛrÜrÝrÞrXrXrXrYÚChild srãrÖrÀrrgrÂrkr×rÄrlrØrÆrmrfrÈrurÙrÊrvrÚrÌr2rÛrÎrwrÜrÐrÛrÝrÒrqrÞrÔrx)rr(rèr]rÖr¬rérgr×rØrfrÙrÚrÛrÜrÝrÞ)r`rârãr-r%ràrXrXrYÚ"test_order_as_function_in_subclasssN z+TestEnum.test_order_as_function_in_subclassc Cs@Gdd„dtƒ}Gdd„dtƒ}Gdd„dtƒ}Gdd„dtƒ}Gd d „d |tƒ}| |jjd ¡| |jjd ¡| |jjd ¡| |jd ¡| t|jƒd¡Gdd „d ||tƒ}| |jjd ¡| |jjd ¡| |jjd ¡| |jd ¡| t|jƒddt|jƒdf¡Gdd „d ||tƒ}| |jjd ¡| |jjd ¡| |jjd ¡| |jd ¡| t|jƒddt|jƒdf¡Gdd„d||tƒ}| |jjd ¡| |jjd ¡| |jjd ¡| t|jƒddt|jƒdf¡| |j  ¡d¡Gdd„d||tƒ}| |jjd ¡| |jjd ¡| |jjd ¡| t|jƒddt|jƒdf¡| |j  ¡d¡| |j  ¡d¡Gdd„d|||ƒ}| |jjd ¡| |jjd ¡| |jjd ¡| t|jƒddt|jƒdf¡| |j  ¡d¡| |j  ¡d¡Gdd„d|||ƒ} | | jjd ¡| | jjd ¡| | jjd ¡| t| jƒddt|jƒdf¡| | j  ¡d¡| | j  ¡d¡Gdd„d|t ||ƒ} | | jjd ¡| | jjd ¡| | jjd ¡| t| jƒddt|jƒdf¡| | j  ¡d¡| | j  ¡d¡|  t | tƒ¡dS) Nc@seZdZedd„ƒZdS)z.TestEnum.test_multiple_mixin..MaxMixincSst|ƒ}||_|Sr³)r³ÚMAX)rÚmaxrXrXrYråBsz2TestEnum.test_multiple_mixin..MaxMixin.MAXN)rfrgrhr²rårXrXrXrYÚMaxMixinAsrçc@seZdZdd„ZdS)z.TestEnum.test_multiple_mixin..StrMixincSs |j ¡Sr³©r†r­rŒrXrXrYr$Hsz6TestEnum.test_multiple_mixin..StrMixin.__str__N©rfrgrhr$rXrXrXrYÚStrMixinGsrêc@seZdZdd„ZdS)z.TestEnum.test_multiple_mixin..SomeEnumcSsdS)NÚbooyahrXrŒrXrXrYÚbehaviorKsz7TestEnum.test_multiple_mixin..SomeEnum.behaviorN)rfrgrhrìrXrXrXrYÚSomeEnumJsríc@seZdZdd„Zdd„ZdS)z1TestEnum.test_multiple_mixin..AnotherEnumcSsdS)Núnuhuh!rXrŒrXrXrYrìNsz:TestEnum.test_multiple_mixin..AnotherEnum.behaviorcSsdS)Nú what's up?rXrŒrXrXrYÚsocialPsz8TestEnum.test_multiple_mixin..AnotherEnum.socialN)rfrgrhrìrðrXrXrXrYÚ AnotherEnumMsrñc@s"eZdZdZeƒZeƒZeƒZdS©z+TestEnum.test_multiple_mixin..ColorúRED GREEN BLUEN©rfrgrhr¿r"r6r8r7rXrXrXrYrÃRsrÃrkrlrmú Color.BLUEc@s"eZdZdZeƒZeƒZeƒZdSròrôrXrXrXrYrÃ\srÂz %r is not %rc@s"eZdZdZeƒZeƒZeƒZdSròrôrXrXrXrYrÃfsc@s"eZdZdZeƒZeƒZeƒZdS)z/TestEnum.test_multiple_mixin..CoolColorróNrôrXrXrXrYÚ CoolColorpsrörëc@s"eZdZdZeƒZeƒZeƒZdS)z1TestEnum.test_multiple_mixin..CoolerColorróNrôrXrXrXrYÚ CoolerColorzsr÷rîrïc@s"eZdZdZeƒZeƒZeƒZdS)z2TestEnum.test_multiple_mixin..CoolestColorróNrôrXrXrXrYÚ CoolestColor…srøc@s"eZdZdZeƒZeƒZeƒZdS)z3TestEnum.test_multiple_mixin..ConfusedColorróNrôrXrXrXrYÚ ConfusedColorsrùc@s"eZdZdZeƒZeƒZeƒZdS)z3TestEnum.test_multiple_mixin..ReformedColorróNrôrXrXrXrYÚ ReformedColor›srú)rrrèr6rér8r7rårrìrðrrOÚ issubclassrþ) r`rçrêrírñrÃrör÷rørùrúrXrXrYÚtest_multiple_mixin@sr"""""""zTestEnum.test_multiple_mixincCs<tGdd„dtƒƒ}Gdd„dtƒ}tGdd„d|ƒƒ}dS)Nc@seZdZdZdZdZdS)z9TestEnum.test_multiple_inherited_mixin..Decision1ÚREVERTÚ REVERT_ALLÚRETRYN©rfrgrhrýrþrÿrXrXrXrYÚ Decision1©src@s eZdZdS)z6TestEnum.test_multiple_inherited_mixin..MyEnumNrIrXrXrXrYr(®sr(c@seZdZdZdZdZdS)z9TestEnum.test_multiple_inherited_mixin..Decision2rýrþrÿNrrXrXrXrYÚ Decision2°sr)rr)r`rr(rrXrXrYÚtest_multiple_inherited_mixin¨s z&TestEnum.test_multiple_inherited_mixincCs4Gdd„dtƒ}| |jjd¡| |jjd¡dS)Nc@seZdZdd„ZdZdZdS)z-TestEnum.test_value_auto_assign..SomecSs t |¡Sr³©rr)rr]rXrXrYr¸sz5TestEnum.test_value_auto_assign..Some.__new__rkrlN)rfrgrhrrxryrXrXrXrYÚSome·srrkrl)rrèrxréry)r`rrXrXrYÚtest_value_auto_assign¶szTestEnum.test_value_auto_assigncsÈGdd„dtƒ}| |jjt¡| |jjt¡| |jjt¡Gdd„dƒ‰Gdd„dƒ‰G‡‡fdd„dtƒ}| |j jˆ¡| |j jˆ¡Gd d „d ƒ‰G‡fd d „d tƒ}| |j jˆ¡d S)z2Support using Enum to refer to types deliberately.c@seZdZeZeZeZdS)z,TestEnum.test_enum_of_types..MyTypesN) rfrgrhrþr-rßrGrrbrXrXrXrYÚMyTypesÁsrc@s eZdZdS)z(TestEnum.test_enum_of_types..FooNrIrXrXrXrYr/Èsr/c@s eZdZdS)z(TestEnum.test_enum_of_types..BarNrIrXrXrXrYÚBarÊsrcseZdZ”Z”ZdS)z-TestEnum.test_enum_of_types..MyTypes2N)rfrgrhrSr{rX)rr/rXrYÚMyTypes2Ìsr c@s eZdZdS)z5TestEnum.test_enum_of_types..SpamEnumNotInnerNrIrXrXrXrYÚSpamEnumNotInnerÑsr cseZdZ”ZdS)z-TestEnum.test_enum_of_types..SpamEnumN)rfrgrhrBrX)r rXrYÚSpamEnumÓsr N) rrèr-rérþrGrßrbrrSr{rB)r`rr r rX)rr/r rYÚtest_enum_of_types¿szTestEnum.test_enum_of_typescCsŠGdd„dtƒ}| t|j|ƒ¡| |jjd¡| |jjjjd¡| t|jjƒ|jjj|jjj g¡| t|ƒ|j|j |jg¡dS)Nc@s,eZdZdZdZdZdZGdd„deƒZdS)zETestEnum.test_nested_classes_in_enum_do_become_members..Outerú a b InnerÚOuterrkrlc@seZdZdZdZdZdS)zKTestEnum.test_nested_classes_in_enum_do_become_members..Outer.Innerú Outer.Innerrxr’N©rfrgrhrJÚbarrXrXrXrYÚInnerßsrN©rfrgrhr¿rSr{rrrXrXrXrYrÚs rrkrx© rrOrùrrèrSrérJr´rr{©r`rrXrXrYÚ-test_nested_classes_in_enum_do_become_membersØs  þþz6TestEnum.test_nested_classes_in_enum_do_become_memberscCsŠGdd„dtƒ}| t|j|ƒ¡| |jjd¡| |jjjjd¡| t|jjƒ|jjj|jjj g¡| t|ƒ|j|j |jg¡dS)Nc@s(eZdZdZdZdZGdd„deƒZdS)zLTestEnum.test_really_nested_classes_in_enum_do_become_members..Outerr rkrlc@seZdZdZdZdS)zRTestEnum.test_really_nested_classes_in_enum_do_become_members..Outer.Innerrxr’NrrXrXrXrYrôsrNrrXrXrXrYrðsrrkrxrrrXrXrYÚ4test_really_nested_classes_in_enum_do_become_membersïs þþz=TestEnum.test_really_nested_classes_in_enum_do_become_memberscCs~Gdd„dtƒ}| t|jtƒ¡| |jjd¡| |jjjd¡| t |jƒ|jj|jj g¡| t |ƒ|j|j g¡dS)ú2Support locally-defined nested classes using @skipc@s,eZdZdZdZdZeGdd„deƒƒZdS)zITestEnum.test_nested_classes_in_enum_are_skipped_with_skip..Outerrrkrlc@seZdZdZdZdZdS)zOTestEnum.test_nested_classes_in_enum_are_skipped_with_skip..Outer.Innerrrxr’NrrXrXrXrYr srN©rfrgrhrSr{r rrrXrXrXrYrs rrkrxN© rrOrùrrrèrSrérJr´rr{rrXrXrYÚ1test_nested_classes_in_enum_are_skipped_with_skips þ þz:TestEnum.test_nested_classes_in_enum_are_skipped_with_skipcCs~Gdd„dtƒ}| t|jtƒ¡| |jjd¡| |jjjd¡| t |jƒ|jj|jj g¡| t |ƒ|j|j g¡dS)rc@s(eZdZdZdZeGdd„deƒƒZdS)zPTestEnum.test_really_nested_classes_in_enum_are_skipped_with_skip..Outerrkrlc@seZdZdZdZdS)zVTestEnum.test_really_nested_classes_in_enum_are_skipped_with_skip..Outer.Innerrxr’NrrXrXrXrYr srNrrXrXrXrYrsrrkrxNrrrXrXrYÚ8test_really_nested_classes_in_enum_are_skipped_with_skipsþ þzATestEnum.test_really_nested_classes_in_enum_are_skipped_with_skipcCs:Gdd„dtƒ}| |j|dƒk¡| |j|ƒk¡dS)Nc@s(eZdZdZdZdZdZedd„ƒZdS)z2TestEnum.test_enum_call_without_arg..ColorrrkrlrmcSs|tkr|jSdSr³)r'r"r¨rXrXrYr©7szBTestEnum.test_enum_call_without_arg..Color._missing_value_N) rfrgrhr"rÀrÁrÂrMr©rXrXrXrYrÃ1s rÃrk)rrOrÀr"rÅrXrXrYÚtest_enum_call_without_arg0s z#TestEnum.test_enum_call_without_argcs<G‡‡fdd„dtƒ‰G‡fdd„dˆƒ‰Gdd„dˆƒ}Gdd„d|ƒ}ˆ ˆjd d¡ˆ |jd d¡ˆ |jd d¡ˆ |j d d ¡¡ˆ |j d d ¡¡Gd d „d ˆƒ}Gdd„d|ƒ}Gdd„d|ƒ}ˆ |jd d¡ˆ |j d d ¡¡ˆ |jd d ¡ˆ |j d d ¡¡ˆ |j d d ¡¡dS)Ncs eZdZ‡‡‡fdd„Z‡ZS)z+TestEnum.test_init_subclass..MyEnumcs0tˆ|ƒjf|Žˆ |j dd¡¡d|_dS©NÚ_testFr(©r^Ú__init_subclass__rMrãÚgetÚ_test1©rrb©r(rer`rXrYr!@sz=TestEnum.test_init_subclass..MyEnum.__init_subclass__©rfrgrhr!rirX©r(r`rdrYr(?sr(cseZdZ‡‡fdd„Z‡ZS)z.TestEnum.test_init_subclass..TheirEnumcstˆ|ƒjf|Žd|_dS©NÚ TheirEnum©r^r!Ú_test2r$©r)rerXrYr!Fsz@TestEnum.test_init_subclass..TheirEnum.__init_subclass__r&rX©r)rdrYr)Esr)c@seZdZdd„ZdS)z.TestEnum.test_init_subclass..WhoseEnumc[sdSr³rXr$rXrXrYr!Jsz@TestEnum.test_init_subclass..WhoseEnum.__init_subclass__N©rfrgrhr!rXrXrXrYÚ WhoseEnumIsr/c@seZdZdZdS)z+TestEnum.test_init_subclass..NoEnumrkN©rfrgrhrárXrXrXrYÚNoEnumLsr1r#r+Fc@seZdZdd„ZdS)z,TestEnum.test_init_subclass..OurEnumc[s d|_dS©NÚOurEnum©r+r$rXrXrYr!Usz>TestEnum.test_init_subclass..OurEnum.__init_subclass__Nr.rXrXrXrYr3Tsr3c@seZdZdd„ZdS)z.TestEnum.test_init_subclass..WhereEnumc[sdSr³rXr$rXrXrYr!Xsz@TestEnum.test_init_subclass..WhereEnum.__init_subclass__Nr.rXrXrXrYÚ WhereEnumWsr5c@seZdZdZdS)z.TestEnum.test_init_subclass..NeverEnumr¢Nr0rXrXrXrYÚ NeverEnumZsr6)rrèrãrMr"©r`r/r1r3r5r6rX©r(r)r`rYÚtest_init_subclass>s"zTestEnum.test_init_subclassc shGdd„dtƒ‰| t¡Gdd„dˆtƒ}W5QRX| t¡G‡fdd„dˆtƒ}W5QRXdS)Nc@seZdZdd„Zdd„ZdS)z*TestEnum.test_init_exception..BasecWs t |¡Sr³r©rrarXrXrYrdsz2TestEnum.test_init_exception..Base.__new__cSstd|ƒ‚dS)Nz I don't like)rœ)r`rxrXrXrYr_fsz3TestEnum.test_init_exception..Base.__init__N)rfrgrhrr_rXrXrXrYÚBasecsr;c@seZdZdZdd„ZdS)ú,TestEnum.test_init_exception..MyEnumrScSs ||_dSr³©ry©r`ryrXrXrYr_ksú5TestEnum.test_init_exception..MyEnum.__init__N)rfrgrhrÄr_rXrXrXrYr(isr(cs$eZdZdZdd„Z‡fdd„ZdS)r<rScSs ||_dSr³r=r>rXrXrYr_psr?csˆ |¡}ˆ|ƒ|_|Sr³)rrr©r;rXrYrrs  z4TestEnum.test_init_exception..MyEnum.__new__N)rfrgrhrÄr_rrXr@rXrYr(ns)rr@rÍrrœ)r`r(rXr@rYÚtest_init_exceptionbs   zTestEnum.test_init_exceptionc sœddlm}|ddƒ‰G‡fdd„dtƒ}| t|jƒd¡| |jjˆddgd¡| d d „|Dƒˆddgdˆd d d gdˆd d dd d gdg¡dS)Nr©Ú namedtupleÚTTupleú id a blistcs8eZdZ”ddgƒZ”dddgƒZ”dddddgƒZdS©z1TestEnum.test_namedtuple_as_value..NTEnumrrkrlruN©rfrgrhÚNONErÄrÅrX©rDrXrYÚNTEnumzs rJú*©ÚidrSZblistcSsg|] }|j‘qSrXr™©r›rxrXrXrYrsú5TestEnum.test_namedtuple_as_value..rkrlru©Ú collectionsrCrrèr+rHré©r`rCrJrXrIrYÚtest_namedtuple_as_valuews   .þz!TestEnum.test_namedtuple_as_valuecCsTGdd„dtƒ}Gdd„dtƒ}| t|jdƒtk¡| t|jdƒtk¡dS)Nc@seZdZdd„ZdS)z,TestEnum.test_gnv_is_static..LazyGNVcSsdSr³rX©r¬r¡rr4rXrXrYrò‡szBTestEnum.test_gnv_is_static..LazyGNV._generate_next_value_NrrXrXrXrYÚLazyGNV†srUc@seZdZedd„ƒZdS)z,TestEnum.test_gnv_is_static..BusyGNVcSsdSr³rXrTrXrXrYròŠszBTestEnum.test_gnv_is_static..BusyGNV._generate_next_value_N)rfrgrhrôròrXrXrXrYÚBusyGNV‰srVrò)rrOrrãrô)r`rUrVrXrXrYÚtest_gnv_is_static…szTestEnum.test_gnv_is_staticc sœddlm}|ddƒ‰G‡fdd„dtƒ}| t|jƒd¡| |jjˆddgd¡| d d „|Dƒˆddgdˆd d d gdˆd d dd d gdg¡dS)NrrBrDrEcs8eZdZ”ddgƒZ”dddgƒZ”dddddgƒZdSrFrGrXrIrXrYrJ“s rJrKrLcSsg|] }|j‘qSrXr™rNrXrXrYršsrOrkrlrurPrRrXrIrYrSs   .þcCsTGdd„dtƒ}| t|ƒd¡| |jjd¡| |jjd¡| |jjd¡dS)Nc@s:eZdZdZeƒdeƒfZddeƒfZeƒeƒeƒfZdS)z4TestEnum.test_multiple_auto_assignment..ManyrrlrurvNrrXrXrXrYÚManyŸs rXrm)rkrlrl)rurvrm)rurvr2)rrèr³rÄrérÅrÆ)r`rXrXrXrYÚtest_multiple_auto_assignmentžs z&TestEnum.test_multiple_auto_assignmentN)°rfrgrhrárñrûrrr r"r$r&r/r2r;rArDrHrKrRrXr^rbrkrprsrurvrwrxryrzr{r|r}r~r€rˆr‰rr‘r“r•r˜r¥r§r«r¬r­r®r¯r°r´r·r»rÁrÃrÄrÆrÊrÔrÖrØrÙrÛrÝrárãrårçrérêrìrírîrïrôrõrýrrrrrrrrr"r%r'r+r6r]r}r€r‚r…r‡rŠr‘r•ršrœr§r«r°r±r²r¶r·r¸ÚCONTINUEÚSWITCHING_PROTOCOLSÚ PROCESSINGrÂrÊrìrürÿrr rrrrrrr&r'r.r1r2r:r>rGrIrQrRrXrZrirjrqrrrsr{r|r‚r‡rŽr‘r˜r r¡r¬r¯rµr¶r»rárärürrr r-rrrrrr9rArSrWrYrXrXrXrYr¶°s\> ! !                            =^78857              $ ! '        | ; h        $   r¶c@s4eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd S) Ú TestStrEnumcsxGdd„dtƒ‰G‡fdd„dtƒ}| t|ƒ|jg¡| |jjd¡d|j_| |jjd¡| |jjdd¡dS)Nc@s*eZdZdZddd„Zdd„Zdd„ZdS) z-TestStrEnum.test_set_name..DescriptorNcSs|dkr |S|j|jSdSr³rârärXrXrYr»¯sz5TestStrEnum.test_set_name..Descriptor.__get__cSs||j|j<dSr³rârårXrXrYrK´sz5TestStrEnum.test_set_name..Descriptor.__set__cSs ||_dSr³r«rærXrXrYrè¶sz:TestStrEnum.test_set_name..Descriptor.__set_name__)NrérXrXrXrYrê­s rêcseZdZdZ”ƒZdS)z)TestStrEnum.test_set_name..AnEnumr¢NrërXrìrXrYrí¹srír£rîrïrðrXrìrYrñ¬s zTestStrEnum.test_set_namecCsdGdd„dtƒ}| t|ƒd¡| |jd¡| t|jtƒ¡| |jd¡| t|jtƒ¡dS)Nc@seZdZdZdZdS)z/TestStrEnum.test_private_names..PrivateròróNrôrXrXrXrYr÷Äsr÷rròrórørúrXrXrYrûÃs zTestStrEnum.test_private_namescCsLGdd„dtƒ}| |j|jk¡| |j ¡d¡| |j d¡d¡dS)Nc@seZdZdZdZdS)z7TestStrEnum.test_strenum_inherited_methods..phyr–r—NrŠrXrXrXrYrÎsrrÀrSrk)rrOr‹rŒrèÚupperrðrrXrXrYÚtest_strenum_inherited_methodsÍsz*TestStrEnum.test_strenum_inherited_methodsc s&ttƒgtdfD]0‰| td¡G‡fdd„dtƒ}W5QRXqGdd„dtƒ}| dd„|Dƒd d d d d g¡| td¡Gdd„dtƒ}W5QRXGdd„dtƒ}| dd„|Dƒd dd d dg¡| td¡Gdd„dtƒ}W5QRXGdd„dtƒ}| dd„|Dƒddddd g¡dS)Nrqzvalues must be strcseZdZ”ZdS)ú,TestStrEnum.test_strict_strenum..HuhN©rfrgrhZhuhrX©ZuhohrXrYr¤Øsr¤c@s(eZdZdZeƒZdZeƒZdZdZ dS)z/TestStrEnum.test_strict_strenum..Eitherúthis that Those lower upperÚThatr­ÚUPPERN© rfrgrhr¿r"rrZThoser­r^rXrXrXrYÚEitherÚs rgcSsg|] }|j‘qSrXr™ršrXrXrYrász3TestStrEnum.test_strict_strenum..rrdrr­rez is not lower-casec@seZdZdZdS©r`ZWhatNrarXrXrXrYr¤äsc@s(eZdZdZeƒZdZeƒZdZdZ dS)z.TestStrEnum.test_strict_strenum..Lowerrcrr­r^NrfrXrXrXrYÚLowerçs ricSsg|] }|j‘qSrXr™ršrXrXrYrîsrr^z is not upper-casec@seZdZdZdSrhrarXrXrXrYr¤ñsc@s(eZdZdZeƒZdZeƒZdZdZ dS)z.TestStrEnum.test_strict_strenum..UpperrcÚTHATÚLOWERreNrfrXrXrXrYÚUpperôs rlcSsg|] }|j‘qSrXr™ršrXrXrYrûsZTHISrjZTHOSErk) rrr\rÍrrèrœr r )r`r¤rgrirlrXrbrYÚtest_strict_strenumÕs   zTestStrEnum.test_strict_strenumcs<G‡‡fdd„dtƒ‰G‡fdd„dˆƒ‰Gdd„dˆƒ}Gdd„d|ƒ}ˆ ˆjd d¡ˆ |jd d¡ˆ |jd d¡ˆ |j d d ¡¡ˆ |j d d ¡¡Gd d „d ˆƒ}Gdd„d|ƒ}Gdd„d|ƒ}ˆ |jd d¡ˆ |j d d ¡¡ˆ |jd d ¡ˆ |j d d ¡¡ˆ |j d d ¡¡dS)Ncs eZdZ‡‡‡fdd„Z‡ZS)z.TestStrEnum.test_init_subclass..MyEnumcs0tˆ|ƒjf|Žˆ |j dd¡¡d|_dSrr r$r%rXrYr!ÿsz@TestStrEnum.test_init_subclass..MyEnum.__init_subclass__r&rXr'rdrYr(þsr(cseZdZ‡‡fdd„Z‡ZS)z1TestStrEnum.test_init_subclass..TheirEnumcstˆ|ƒjf|Žd|_dSr(r*r$r,rXrYr!szCTestStrEnum.test_init_subclass..TheirEnum.__init_subclass__r&rXr-rdrYr)sr)c@seZdZdd„ZdS)z1TestStrEnum.test_init_subclass..WhoseEnumc[sdSr³rXr$rXrXrYr! szCTestStrEnum.test_init_subclass..WhoseEnum.__init_subclass__Nr.rXrXrXrYr/sr/c@seZdZdZdS)z.TestStrEnum.test_init_subclass..NoEnumr¢Nr0rXrXrXrYr1 sr1r#r+Fc@seZdZdd„ZdS)z/TestStrEnum.test_init_subclass..OurEnumc[s d|_dSr2r4r$rXrXrYr!szATestStrEnum.test_init_subclass..OurEnum.__init_subclass__Nr.rXrXrXrYr3sr3c@seZdZdd„ZdS)z1TestStrEnum.test_init_subclass..WhereEnumc[sdSr³rXr$rXrXrYr!szCTestStrEnum.test_init_subclass..WhereEnum.__init_subclass__Nr.rXrXrXrYr5sr5c@seZdZdZdS)z1TestStrEnum.test_init_subclass..NeverEnumr¢Nr0rXrXrXrYr6sr6)rrèrãrMr"r7rXr8rYr9ýs"zTestStrEnum.test_init_subclassN)rfrgrhrñrûr_rmr9rXrXrXrYr]ªs  (r]c@s¤eZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„Zd0d1„Zd2d3„Zd4d5„Zd6d7„Zd8d9„Zd:d;„Z dd?„Z"d@dA„Z#dBdC„Z$dDdE„Z%dFdG„Z&dHdI„Z'e( )e*dJ¡dKdL„ƒZ+dMdN„Z,dOdP„Z-dQdR„Z.dSdT„Z/dUdV„Z0dWdX„Z1dYdZ„Z2d[d\„Z3d]d^„Z4d_d`„Z5dadb„Z6dcdd„Z7deS)fÚTestFlagzTests of the Flags.cCstGdd„dtƒ}||_Gdd„dtƒ}||_Gdd„dtƒ}||_Gdd„dttƒ}||_Gd d „d tƒ}||_dS) Nc@seZdZdZd\ZZZdS)zTestFlag.setUp..PermúR W X)rurlrkN©rfrgrhr¿ÚRÚWÚXrXrXrXrYÚPerm&srtc@s@eZdZdZdZdZdZdZeeBZeeBeBZ eeBeBZ dS)zTestFlag.setUp..ColorrrkrlruN) rfrgrhr‹r6ZROJOr8r7ÚPURPLEZWHITEÚBLANCOrXrXrXrYrÃ+s rÃc@sLeZdZdZeƒZeƒZeeBZeƒZeeBZ eeBZ eeBeBZ eƒZ dS)zTestFlag.setUp..FunzONE TWO FOUR EIGHTN) rfrgrhr¿r"rárârãrÚFIVEÚSIXÚSEVENÚEIGHTrXrXrXrYÚFun6s r{c@sšeZdZdd„Zedd„ƒZdZdZdZdZ d Z d Z d Z d Z d ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZejZdd„Zdd„Z d d!„Z!d"S)#z!TestFlag.setUp..TermColorcSs$d|}t ||¡}||_||_|Sr©rrrr©rrérrr¨rXrXrYrCs  z)TestFlag.setUp..TermColor.__new__cWsd dd„|Dƒ¡}||fS)Nú;css|] }|jVqdSr³©rršrXrXrYÚ LszRTestFlag.setUp..TermColor._create_pseudo_member_values_..©r©rrEr4rrXrXrYÚ_create_pseudo_member_values_Jsz?TestFlag.setUp..TermColor._create_pseudo_member_values_rrÚ2Ú4r…Ú30Ú31Ú32Z33Ú34Z35rZ37Ú39r!Z41Z42Ú43Z44Ú45Ú46Ú47Ú49cSsF|jdk rd|jj|jfSd|jjd dd„t |¡Dƒ¡fSdS)Nrdú<%s: %s>ú|cSsg|] }|j‘qSrXr«ršrXrXrYrpsz>TestFlag.setUp..TermColor.__repr__..)r†rerfrrÚ__iter__rŒrXrXrYr&ls z*TestFlag.setUp..TermColor.__repr__cSst|jddd|S©NÚr)ÚendÚverbose©r•r%rŒrXrXrYÚ __enter__rsz+TestFlag.setUp..TermColor.__enter__cWst|jddddSr“r—)r`rarXrXrYÚ__exit__vsz*TestFlag.setUp..TermColor.__exit__N)"rfrgrhrrMrƒr%r&ÚDimÚ UnderlineÚNormalÚFG_BlackÚFG_RedÚFG_GreenZ FG_YellowÚFG_BlueZ FG_Magentar'ZFG_WhiteZFG_Resetr(ZBG_RedZBG_GreenÚ BG_YellowZBG_BlueÚ BG_MagentaÚBG_CyanÚBG_WhiteZBG_Resetrr$r&r˜r™rXrXrXrYÚ TermColorBs< r¥c@s eZdZdZdZdZdZdZdS)zTestFlag.setUp..OpenrrkrlrméN)rfrgrhÚROÚWOÚRWÚACÚCErXrXrXrYÚOpenzs r¬)rrtrÃr{rr¥r¬)r`rtrÃr{r¥r¬rXrXrYrá%s  6zTestFlag.setUpcsxGdd„dtƒ‰G‡fdd„dtƒ}| t|ƒ|jg¡| |jjd¡d|j_| |jjd¡| |jjdd¡dS)Nc@s*eZdZdZddd„Zdd„Zdd„ZdS) z*TestFlag.test_set_name..DescriptorNcSs|dkr |S|j|jSdSr³rârärXrXrYr»…sz2TestFlag.test_set_name..Descriptor.__get__cSs||j|j<dSr³rârårXrXrYrKŠsz2TestFlag.test_set_name..Descriptor.__set__cSs ||_dSr³r«rærXrXrYrèŒsz7TestFlag.test_set_name..Descriptor.__set_name__)NrérXrXrXrYrêƒs rêcseZdZdZ”ƒZdS)z&TestFlag.test_set_name..AnEnumrkNrërXrìrXrYrísrír£rîrïrðrXrìrYrñ‚s zTestFlag.test_set_namecCs’Gdd„dtƒ}|j}| t|ƒ|kt|ƒ¡| |j|j|j|jfd¡|j }| |j|j|j|jfd¡|j }| |j|j|j|jfd¡dS)Nc@s&eZdZdZddd„ZdZdZdZdS) z,TestFlag.test_new_with_keywords..HuhrüNcSsV|jrdt|jƒd}nd}t ||¡}|r:|dkr:|}||_||_||_||_|S)Nrlrkr)rýr³rþrrþrÿr·rrrXrXrYrœs  z4TestFlag.test_new_with_keywords..Huh.__new__rrr)NNrrXrXrXrYr¤šs  r¤r rr) rr rOrrèrér·rþrÿr r rrXrXrYr™s"þþþzTestFlag.test_new_with_keywordscCsdGdd„dtƒ}| t|ƒd¡| |jd¡| t|jtƒ¡| |jd¡| t|jtƒ¡dS)Nc@seZdZdZdZdS)z,TestFlag.test_private_names..PrivateròróNrôrXrXrXrYr÷¾sr÷rròrórørúrXrXrYrû½s zTestFlag.test_private_namescCsj|j}| t|ƒ|j|j|j|jg¡| |jjd¡| t |j ƒd¡| t|j ƒ|j|j|jg¡dS)Nrmz) r{rèr´rárârrzrãrr+ry)r`r{rXrXrYÚtest_auto_aliasÇsþzTestFlag.test_auto_aliascCs||jj|jj}}||B}| |d¡| |j|j|jB¡| |jd |j|jg¡¡| t|ƒd¡| t|ƒd¡dS)Nzr~z) r¥ržr¤rèrérrr+r)r`rÀrÚbarberrXrXrYÚtest_str_is_str_strÑs zTestFlag.test_str_is_str_strcCsˆ|j}|j}| d|k¡| d|k¡| |j|k¡| |j|k¡| |j|k¡| |j|k¡| d|k¡| d|k¡dS)Nr‹r§r)rÃr¬rMrOr‹r§©r`rÃr¬rXrXrYÚtest_membershipÚszTestFlag.test_membershipcsX|j‰| t‡fdd„¡| t‡fdd„¡| ˆjˆjk¡| ˆjˆdk¡dS)Ncs dˆjkSr_©r7rXr°rXrYr±èr²z/TestFlag.test_member_contains..cs dˆjkSr%r²rXr°rXrYr±ér²zRED|GREEN|BLUE)rÃr@rÍrOr7rŒrXr°rYrbæs zTestFlag.test_member_containscCsd| |j |jj¡d¡| |j |jj¡d¡| |j |jj¡d¡| |j |jj¡d¡dS)Nrrkrlrm)rèrÃÚ__len__r‹r8rurvrŒrXrXrYÚtest_member_lengthíszTestFlag.test_member_lengthcCsxGdd„dtƒ}| t|ƒ|j|j|j|j|jg¡| |j|j ¡| |j j d¡| |jj d¡| |jj d¡dS)Nc@s2eZdZdZeƒZeƒZeƒZdZeƒZ eƒZ dS)z>TestFlag.test_number_reset_and_order_cleanup..ConfusedzONE TWO FOUR DOS EIGHT SIXTEENrlN) rfrgrhr¿r"rárârrrzÚSIXTEENrXrXrXrYrôsrrlrÛé) rrèr´rárârrzrµr©rrrrXrXrYrósþz,TestFlag.test_number_reset_and_order_cleanupcCs|j}| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd¡| t|jƒd¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|d ƒƒd¡| t|d ƒƒd¡|j}| t|jƒd ¡| t|jƒd ¡| t|j ƒd ¡| t|j|j Bƒd¡| t|j|j Bƒd¡| t|jƒd¡| t|jƒd¡| t|j ƒd¡| t|j|j Bƒd ¡| t|j|j Bƒd¡dS)NzPerm.RzPerm.WzPerm.XzPerm.R|Wz Perm.R|W|XrzPerm(0)zPerm.W|XzPerm.R|XrPzOpen.ROzOpen.WOzOpen.ACzOpen.CEz Open.WO|CEz Open.WO|RW|CEz Open.RW|CEzOpen.RW© rtrèrrqrrrsr¬r§r¨rªr«©r`rtr¬rXrXrYÚtest_strs2 zTestFlag.test_strcCsð|j}| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd¡| t|jƒd¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|d ƒƒd¡|j}| t|jƒd ¡| t|jƒd ¡| t|j ƒd ¡| t|j|j Bƒd¡| t|j|j Bƒd¡| t|jƒd¡| t|jƒd¡| t|j ƒd¡| t|j|j Bƒd ¡| t|j|j Bƒd¡dS)Nú ú ú ú úrú ú ú rPú ú ú úúúúú ) rtrèr+rqrrrsr¬r§r¨rªr«r¸rXrXrYÚ test_repr s0 zTestFlag.test_reprcCsL|j}| |j|dk¡| |j|jB|dk¡| |j|dk¡dS©Nr6z RED|GREENzRED|BLUE©rÃrOr6r8rurÅrXrXrYÚtest_name_lookup;szTestFlag.test_name_lookupcCsž|j}|D]X}|D]N}| ||B||j|jBƒ¡| ||Bj|j|jB¡| t||Bƒ|¡qq |D]}| ||B|¡qh|j}| |j|jB|j¡dSr³©rtrèrér©rr¬r§r«©r`rtr-Újr¬rXrXrYÚtest_orAszTestFlag.test_orc Csò|j}|j|jB}|j|jB}|j|jB}|j|jB|jB}t|ƒ|||||dƒg}|D]<}|D]2}| ||@j|j|j@¡| t||@ƒ|¡qbqZ|D]4}| ||@|¡| ||@|¡| ||@|¡qœ|j } | | j | j @| j ¡dSr‹) rtrqrrrsr´rèrér©rr¬r§r«© r`rtr©ÚRXÚWXÚRWXr4r-rÐr¬rXrXrYÚtest_andMs    zTestFlag.test_andcCs°|j}|D]<}|D]2}| ||Aj|j|jA¡| t||Aƒ|¡qq |D],}| ||dƒA|¡| |dƒ|A|¡qL|j}| |j|jA|j¡| |j|jA|j¡dSr‹rÎrÏrXrXrYÚtest_xor_szTestFlag.test_xorc CsÜ|j}|j|jB}|j|jB}|j|jB}|j|jB|jB}t|ƒ|||||dƒg}|D]&}| t|ƒ|¡| ||¡qZ|D]}| ||¡q†|j}| |j |j @|j ¡| |j |j B|j @|j ¡dSr‹) rtrqrrrsr´r©rrèr¬r¨r§r«© r`rtr©rÓrÔrÕr4r-r¬rXrXrYÚ test_invertls   zTestFlag.test_invertcCsD|j}|D]}| |¡q |j}|D]}| t|jƒt|ƒ¡q$dSr³©rtrOr¬rèrGré©r`rtrGr¬rXrXrYrX|s  zTestFlag.test_boolcCs|Gdd„dtƒ}Gdd„d|ƒ}|}| |jjd¡| |jjd¡| |jjd¡| |j|jBjdd |j|jB¡dS) Nc@seZdZdZdZdS)z'TestFlag.test_doc_flag..DocFlagr@rN)rfrgrhrðrHrXrXrXrYÚDocFlag…srÜc@s<eZdZdZdZdZdZdZdZdZ dZ dZ d Z d Z d Zd S) z.TestFlag.test_doc_flag..AddressSegmentzXUNKNOWN PO PO_TYPE NUMBER PREORD NAME STREET POSTORD SECONDARY_TYPE SECONDARY_NUMBER ANDz(unable to determine address element typezpost office deliveryz box or drawerzmain unit designatorz N S E W etcz street namezst ave blvd etczapt bldg floor etczsecondary unit designatorz& indicates a corner addressN)rfrgrhr¿ÚUNKNOWNZPOZPO_TYPEÚNUMBERZPREORDÚNAMEÚSTREETZPOSTORDÚSECONDARY_TYPEZSECONDARY_NUMBERÚANDrXrXrXrYÚAddressSegmentšsrãr¶rvé€é0z %r is not 48)rrèrßrràrá)r`rÜrãZASrXrXrYÚ test_doc_flag„s zTestFlag.test_doc_flagcCs@|j}| t|ƒ|j|j|jg¡| t|jƒ|j|jg¡dSr³)rÃrèr´r6r8r7ru©r`rÆrXrXrYÚtest_iteration­szTestFlag.test_iterationcCsL|j}| t|jƒg¡| t|jƒ|jg¡| t|jƒ|j|jg¡dSr³)rÃrèr´r‹r6rur7rçrXrXrYÚtest_member_iteration²szTestFlag.test_member_iterationcCsÄtddƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td ¡ƒD]b\}}d|>}||ƒ}| |j |¡| t |j ƒt ¡| |j |¡|  ||¡| t |ƒ|¡q\dS©Nrtrormrk©rr´rèr³rqrrrsr(r)rérrþr¬ÚassertInr©©r`rtr,r-Únr…r.rXrXrYrÔ¸s  z)TestFlag.test_programatic_function_stringcCsÈtdddd}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td ¡ƒD]b\}}d|>}||ƒ}| |j |¡| t |j ƒt ¡| |j |¡|  ||¡| t |ƒ|¡q`dS©NrtrorÛrÕrmrërírXrXrYrÖÇs z4TestFlag.test_programatic_function_string_with_startcCsÊtddddgƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td ¡ƒD]b\}}d|>}||ƒ}| |j |¡| t |j ƒt ¡| |j |¡|  ||¡| t |ƒ|¡qbdS©NrtrqrrrsrmrorkrërírXrXrYrØÖs z.TestFlag.test_programatic_function_string_listcCsÌtddƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td ¡ƒD]j\}}dd|d>}||ƒ}| |j |¡| t |j ƒt ¡| |j |¡|  ||¡| t |ƒ|¡q\dS©Nrt))rqrl)rrrÛ)rsrvrmrorkrlrërírXrXrYrÛås  z+TestFlag.test_programatic_function_iterablecCsÐtdtdƒƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td  ¡ƒD]j\}}dd|d>}||ƒ}| |j |¡| t |j ƒt ¡| |j |¡| ||¡| t |ƒ|¡q`dSrñ)rr7r´rèr³rqrrrsr(r)rérrþr¬rìr©rírXrXrYrÝôs z,TestFlag.test_programatic_function_from_dictcCshtdgƒ}| tt|ƒƒt|ƒ¡| t|ƒd¡tdgƒ}| tt|ƒƒt|ƒ¡| t|ƒd¡dS)NrtrÚThing©rrèr³r´r©r`rtròrXrXrYÚ$test_programatic_function_empty_lists   z-TestFlag.test_programatic_function_empty_listcCshtddƒ}| tt|ƒƒt|ƒ¡| t|ƒd¡tddƒ}| tt|ƒƒt|ƒ¡| t|ƒd¡dS)NrtrXrròrórôrXrXrYÚ%test_programatic_function_empty_tuple s   z.TestFlag.test_programatic_function_empty_tuplecCsrtttƒrt‚t|jtjtjBƒt|jtƒt|jtjtj@ƒt|jtƒt|jtjƒt|jtjtjBƒt|jtj ƒt|jtjtj Bƒt|jt jƒt|jt jt jBƒt|jt j ƒt|jt jƒt|jt jt jBƒt|jt j ƒt|jt jt j Bƒt|jt jƒt|jt jt jBƒt|jt jt jBdBƒt|jt dƒƒt|jt dƒƒt|jt ƒt|jt jƒt|jt jdBƒt|jt jt jBƒt|jt j ƒt|jt j dBƒt|jt jt j Bƒt|jt jƒt|jt jt jBƒt|jt j ƒt|jt jƒt|jt jdBƒt|jt jt jBƒt|jt j ƒt|jt j dBƒt|jt jt j BƒdS)Nrårrk)rùrtr˜r¦r©rprqrèrzryr{r}r~rrŒrXrXrYÚ test_pickles$  þþ þþþ þþ þþ þþþ þþ þþ þþþþþþþ þþþ þþ þþþþ þþþ þzTestFlag.test_picklec Csà|j}|\}}}||B}||B}||B}||B|B}| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡dSr³©rtrOrM© r`rtrqrrrsr©rÓrÔrÕrXrXrYÚtest_containmentªs$  zTestFlag.test_containmentcCs`Gdd„dtƒ}| t|ƒ|j|j|jg¡| |jjd¡| |jjd¡| |jjd¡dS)Nc@s"eZdZdZeƒZeƒZeƒZdS)z(TestFlag.test_auto_number..Colorr Nr rXrXrXrYrÿsrÃrkrlru)rrèr´rÀrÂrÁrérÅrXrXrYr¾s zTestFlag.test_auto_numberc Cs,| td¡Gdd„dtƒ}W5QRXdS)Nz invalid Flag value: .not an int.c@seZdZdZdZeƒZdS)z0TestFlag.test_auto_number_garbage..Colorrz not an intNrrXrXrXrYrÃÌsrÃrØrÅrXrXrYÚtest_auto_number_garbageÊsz!TestFlag.test_auto_number_garbagecCsDGdd„dtƒ}| |jjd¡| |jjd¡| |jjd¡dS)Nc@s(eZdZdZdZeƒZeƒZeeBZdS)z.TestFlag.test_auto_w_pending..Requiredz TO_S FROM_SrN) rfrgrhr¿rHr"ÚTO_SÚFROM_SÚBOTHrXrXrXrYÚRequiredÒs rÿrkrlrm)rrèrürérýrþ)r`rÿrXrXrYÚtest_auto_w_pendingÑszTestFlag.test_auto_w_pendingcCs0Gdd„dtƒ}| |j|j|jgt|ƒ¡dS)Nc@s&eZdZdZeƒZZeƒZeƒZdS)z+TestFlag.test_duplicate_auto..DupesrNrrXrXrXrYrÝs r)rrèrfrirr´)r`rrXrXrYrÜszTestFlag.test_duplicate_autocCsGdd„dtƒ}dS)Nc@seZdZdZdZdZdS)z&TestFlag.test_bizarre..Bizarrermrur2N)rfrgrhr{r¡rÈrXrXrXrYÚBizarreåsrrÕ)r`rrXrXrYÚ test_bizarreäszTestFlag.test_bizarrecCsTGdd„dtƒ}Gdd„dtƒ}Gdd„d|tƒ}| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| t|jƒd ¡Gd d„d||tƒ}| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| t|jƒd ¡Gdd„d||tƒ}| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| t|jƒd ¡dS)Nc@seZdZedd„ƒZdS)z.TestFlag.test_multiple_mixin..AllMixincSs<t|ƒ}d}|r2|d}|dd…D] }||O}q$||_|S©Nrrk©r´ÚALL©rrEZ all_valuer%rXrXrYrís z2TestFlag.test_multiple_mixin..AllMixin.ALLN©rfrgrhr²rrXrXrXrYÚAllMixinìsrc@seZdZdd„ZdS)z.TestFlag.test_multiple_mixin..StrMixincSs |j ¡Sr³rèrŒrXrXrYr$øsz6TestFlag.test_multiple_mixin..StrMixin.__str__NrérXrXrXrYrê÷srêc@s"eZdZdZeƒZeƒZeƒZdS©z+TestFlag.test_multiple_mixin..ColorróNrôrXrXrXrYrÃúsrÃrkrlrurwrõc@s"eZdZdZeƒZeƒZeƒZdSr rôrXrXrXrYrÃsrÂc@s"eZdZdZeƒZeƒZeƒZdSr rôrXrXrXrYrÃs) rrrèr6rér8r7rr)r`rrêrÃrXrXrYrüës( zTestFlag.test_multiple_mixinú!Threading required for this test.csŒGdd„dtƒ‰tƒ‰dg‰‡‡‡fdd„‰‡fdd„tdƒDƒ}|D] }| ¡qF|D] }| ¡qX| ˆd d ¡| d tˆƒd ¡dS) Nc@sPeZdZdZeƒZeƒZeƒZeƒZeƒZ eƒZ eƒZ eƒZ dd„Z dd„ZdS)z0TestFlag.test_unique_composite..TestFlagú'one two three four five six seven eightcSs||kSr³rXr–rXrXrYr—&sz7TestFlag.test_unique_composite..TestFlag.__eq__cSs t|jƒSr³©ÚhashrrŒrXrXrYrÂ(sz9TestFlag.test_unique_composite..TestFlag.__hash__N©rfrgrhr¿r"r¢r£rîÚfourÚfiveÚsixÚsevenÚeightr—rÂrXrXrXrYrnsrnFcsBz tdƒD]}ˆ ˆ|ƒ¡q Wntk r<dˆd<YnXdS©NéTr©r—rBr˜©r-©rnÚfailedÚseenrXrYÚ cycle_enum-s  z2TestFlag.test_unique_composite..cycle_enumcsg|]}tjˆd‘qS©)r ©Ú threadingÚThread©r›r[©rrXrYr4sÿz2TestFlag.test_unique_composite..rÛrú;at least one thread failed while creating composite membersrú"too many composite members created)rr†r—r¡rrMrèr³©r`ÚthreadsÚtrX©rnrrrrYÚtest_unique_composites  þ  þzTestFlag.test_unique_compositecsG‡fdd„dtƒ‰dS)NcsBeZdZdZdd„Ze‡‡fdd„ƒZdZdZdZ d Z d Z ‡Z S) zHTestFlag.test_init_with_autovalue_and_generate_next_value..Colorz value codec _sŽ|sd|f|dk f|Sd}t|ƒD]L}zt|ƒ}WqtWq&tk rp} z| } d}WY¢qtW5d} ~ XYq&Xq&|r|| ‚d|df|S)NrkFTrl)rÅr6r˜) r¬r¡rðÚ last_valuesrarbr–Ú last_valueÚhigh_bitr.r¤rXrXrYròEs  z^TestFlag.test_init_with_autovalue_and_generate_next_value..Color._generate_next_value_cs8t| |¡ƒ}tˆ|ƒ |¡}d dd„|Dƒ¡|_|S)Nr~css|] }|jVqdSr³rršrXrXrYr€YszrTestFlag.test_init_with_autovalue_and_generate_next_value..Color._create_pseudo_member_..)r´Ú _iter_member_r^Ú_create_pseudo_member_rr)rrérEÚ pseudo_member©rÃrerXrYr-Usz_TestFlag.test_init_with_autovalue_and_generate_next_value..Color._create_pseudo_member_rrr„r…r…) rfrgrhrðròrMr-r%r&ršr›rœrirXr°rdrYrÃCsrÃrÕrŒrXr°rYÚ0test_init_with_autovalue_and_generate_next_valueBsz9TestFlag.test_init_with_autovalue_and_generate_next_valuecsG‡fdd„dttƒ‰dS)NcsZeZdZdZdd„Zedd„ƒZe‡‡fdd„ƒZdZ d Z d Z d Z d Z d ZdZdZ‡ZS)z>TestFlag.test_autovalue_and_generate_next_value..ColorúFFG_Black FG_Red FG_Green FG_Blue BG_Yellow BG_Magenta BG_Cyan BG_WhitecSs$d|}t ||¡}||_||_|Srr|r}rXrXrYres  zFTestFlag.test_autovalue_and_generate_next_value..Color.__new__c_sd|f|Sr%rXrñrXrXrYròkszTTestFlag.test_autovalue_and_generate_next_value..Color._generate_next_value_cs8t| |¡ƒ}d dd„|Dƒ¡}tˆ|ƒ ||¡}|S)Nr~css|] }|jVqdSr³rršrXrXrYr€sszhTestFlag.test_autovalue_and_generate_next_value..Color._create_pseudo_member_..©r´r,rr^r-©rrérErr.r/rXrYr-oszUTestFlag.test_autovalue_and_generate_next_value..Color._create_pseudo_member_r†r‡rˆr‰r‹rŒrrŽ©rfrgrhr¿rrôròrMr-rržrŸr r¡r¢r£r¤rirXr°rdrYrÃcs rÃ)rrrŒrXr°rYÚ&test_autovalue_and_generate_next_valuebsz/TestFlag.test_autovalue_and_generate_next_valuecs\G‡fdd„dttƒ‰| tˆjˆƒ¡| tˆjtƒ¡| ˆjd¡| ˆjjd¡dS)NcsZeZdZdZdd„Zedd„ƒZe‡‡fdd„ƒZdZ d Z d Z d Z d Z d ZdZdZ‡ZS)z%TestFlag.test_subclass..Colorr1cSs$d|}t ||¡}||_||_|Srr|r}rXrXrYr†s  z-TestFlag.test_subclass..Color.__new__c_sd|f|Sr%rXrñrXrXrYròŒsz;TestFlag.test_subclass..Color._generate_next_value_cs8t| |¡ƒ}d dd„|Dƒ¡}tˆ|ƒ ||¡}|S)Nr~css|] }|jVqdSr³rršrXrXrYr€“szOTestFlag.test_subclass..Color._create_pseudo_member_..r2r3r/rXrYr-sz.Color._create_pseudo_member_r†r‡rˆr‰r‹rŒrrŽr4rXr°rdrYrÄs rÃúr†©rrrOrùrrèrrŒrXr°rYÚ test_subclassƒs zTestFlag.test_subclasscslG‡fdd„dttƒ}Gdd„d|ƒ‰| tˆjˆƒ¡| tˆjtƒ¡| ˆjd¡| ˆjjd¡dS)Ncs*eZdZdd„Ze‡‡fdd„ƒZ‡ZS)z-TestFlag.test_sub_subclass_1..StrFlagcSs$d|}t ||¡}||_||_|Srr|r}rXrXrYr¨s  z5TestFlag.test_sub_subclass_1..StrFlag.__new__cs8t| |¡ƒ}d dd„|Dƒ¡}tˆ|ƒ ||¡}|S)Nr~css|] }|jVqdSr³rršrXrXrYr€²szWTestFlag.test_sub_subclass_1..StrFlag._create_pseudo_member_..r2r3r/rXrYr-®szDTestFlag.test_sub_subclass_1..StrFlag._create_pseudo_member_©rfrgrhrrMr-rirXr°rdrYÚStrFlag§sr:c@s0eZdZdZdZdZdZdZdZdZ dZ d Z d S) z+TestFlag.test_sub_subclass_1..Colorr1r†r‡rˆr‰r‹rŒrrŽN© rfrgrhr¿rržrŸr r¡r¢r£r¤rXrXrXrYrõsrÃr6r†r7©r`r:rXr°rYÚtest_sub_subclass_1¦s  zTestFlag.test_sub_subclass_1cslG‡fdd„dttƒ}Gdd„d|ƒ‰| tˆjˆƒ¡| tˆjtƒ¡| ˆjd¡| ˆjjd¡dS)Ncs.eZdZedd„ƒZe‡‡fdd„ƒZ‡ZS)z-TestFlag.test_sub_subclass_2..StrFlagc_sd|f|Sr%rXrñrXrXrYròÈszCTestFlag.test_sub_subclass_2..StrFlag._generate_next_value_cs8t| |¡ƒ}d dd„|Dƒ¡}tˆ|ƒ ||¡}|S)Nr~css|] }|jVqdSr³rršrXrXrYr€ÏszWTestFlag.test_sub_subclass_2..StrFlag._create_pseudo_member_..r2r3r/rXrYr-ËszDTestFlag.test_sub_subclass_2..StrFlag._create_pseudo_member_)rfrgrhrôròrMr-rirXr°rdrYr:Çs r:c@s8eZdZdZdd„ZdZdZdZdZdZ d Z d Z d Z d S) z+TestFlag.test_sub_subclass_2..Colorr1cSs$d|}t ||¡}||_||_|Srr|r}rXrXrYrÕs  z3TestFlag.test_sub_subclass_2..Color.__new__r†r‡rˆr‰r‹rŒrrŽN) rfrgrhr¿rrržrŸr r¡r¢r£r¤rXrXrXrYrÃÓsrÃr6r†r7r<rXr°rYÚtest_sub_subclass_2Æs  zTestFlag.test_sub_subclass_2cslG‡fdd„dttƒ}Gdd„d|ƒ‰| tˆjˆƒ¡| tˆjtƒ¡| ˆjd¡| ˆjjd¡dS)Ncs*eZdZdd„Ze‡‡fdd„ƒZ‡ZS)z-TestFlag.test_sub_subclass_3..StrFlagcSs$d|}t ||¡}||_||_|Srr|r}rXrXrYrìs  z5TestFlag.test_sub_subclass_3..StrFlag.__new__cs8t| |¡ƒ}d dd„|Dƒ¡}tˆ|ƒ ||¡}|S)Nr~css|] }|jVqdSr³rršrXrXrYr€öszWTestFlag.test_sub_subclass_3..StrFlag._create_pseudo_member_..r2r3r/rXrYr-òszDTestFlag.test_sub_subclass_3..StrFlag._create_pseudo_member_r9rXr°rdrYr:ësr:c@s0eZdZdZdZdZdZdZdZdZ dZ d Z d S) z+TestFlag.test_sub_subclass_3..Colorr1r†r‡rˆr‰r‹rŒrrŽNr;rXrXrXrYrÃúsrÃr6r†r7r<rXr°rYÚtest_sub_subclass_3ês  zTestFlag.test_sub_subclass_3cCs¾Gdd„dttƒ}Gdd„d|ƒ}| t|j|ƒ¡| t|jtƒ¡| |jd¡| |jjd¡|j|jB}| t||ƒ¡| t|tƒ¡| |d¡| |jd¡| t|ƒd ¡dS) Nc@s eZdZdd„Zedd„ƒZdS)z-TestFlag.test_sub_subclass_4..StrFlagcSs$d|}t ||¡}||_||_|Srr|r}rXrXrYr s  z5TestFlag.test_sub_subclass_4..StrFlag.__new__cWsd dd„|Dƒ¡}||fS)Nr~css|] }|jVqdSr³rršrXrXrYr€sz^TestFlag.test_sub_subclass_4..StrFlag._create_pseudo_member_values_..rr‚rXrXrYrƒszKTestFlag.test_sub_subclass_4..StrFlag._create_pseudo_member_values_N)rfrgrhrrMrƒrXrXrXrYr: sr:c@s8eZdZdZdZdZdZdZdZdZ dZ d Z d d „Z d S) z+TestFlag.test_sub_subclass_4..Colorr1r†r‡rˆr‰r‹rŒrrŽcSsd|jj|jfSrcrerŒrXrXrYr&%sz4TestFlag.test_sub_subclass_4..Color.__repr__N) rfrgrhr¿rržrŸr r¡r¢r£r¤r&rXrXrXrYrÃsrÃr6r†zz30;45z) rrrOrùrrèrr¢r+)r`r:rÃÚcolorsrXrXrYÚtest_sub_subclass_4 s   zTestFlag.test_sub_subclass_4csvG‡fdd„dttƒ‰Gdd„dˆƒ}| t|j|ƒ¡| t|jtƒ¡| |jdt |j¡¡| |jjd¡dS)Ncs*eZdZdd„Ze‡‡fdd„ƒZ‡ZS)z8TestFlag.test_sub_subclass_with_new_new..StrFlagcSs$d|}t ||¡}||_||_|Srr|r}rXrXrYr4s  z@TestFlag.test_sub_subclass_with_new_new..StrFlag.__new__cs8t| |¡ƒ}d dd„|Dƒ¡}tˆ|ƒ ||¡}|S)Nr~css|] }|jVqdSr³rršrXrXrYr€>szbTestFlag.test_sub_subclass_with_new_new..StrFlag._create_pseudo_member_..r2r3)r:rerXrYr-:szOTestFlag.test_sub_subclass_with_new_new..StrFlag._create_pseudo_member_r9rX©r:rdrYr:3sr:c@s@eZdZdZdd„ZdZdZdZdZdZ d Z d Z d Z d d „Z dS)z6TestFlag.test_sub_subclass_with_new_new..Colorr1cSs.|pd ¡}t ||¡}||_||_||_|S)Nr”)rRrrrrr\)rréÚstringr\rr¨rXrXrYrDs   z>TestFlag.test_sub_subclass_with_new_new..Color.__new__)r†Úblk)r‡rÀ)rˆZgrn)r‰Zblu)r‹Zylw)rŒÚmag)rZcyn)rŽZwhtcSs@|jdk rd|jj|jfSd|jjd dd„|Dƒ¡fSdS)Nrdrr‘cSsg|] }|j‘qSrXr«ršrXrXrYrZszSTestFlag.test_sub_subclass_with_new_new..Color.__repr__..©r†rerfrrŒrXrXrYr&Vs z?TestFlag.test_sub_subclass_with_new_new..Color.__repr__N)rfrgrhr¿rrržrŸr r¡r¢r£r¤r&rXrXrXrYrÃBsrÃZBlkrD)rrrOrùrrèr&r\rÅrXrBrYÚtest_sub_subclass_with_new_new2s z'TestFlag.test_sub_subclass_with_new_newcCspGdd„dttƒ}| |jd¡| |jjd¡| |jd¡| |jjd¡| |jd¡| |jjd¡dS) Nc@seZdZdZdZdZdZdS)z7TestFlag.test_subclass_with_default_new..MyFlagzthis these theotherrrÚ thingimibobsN)rfrgrhr¿rrr)rXrXrXrYÚMyFlagasrIrrkrrlrHru)rrrèrrérr))r`rIrXrXrYÚtest_subclass_with_default_new`sz'TestFlag.test_subclass_with_default_newcs‚G‡fdd„dttƒ‰ˆjˆjB}| t|ˆƒ¡| t|tƒ¡| |ˆjˆjB¡| |d¡| |jd¡| |j d¡dS)NcsbeZdZdZdd„Zedd„ƒZe‡‡fdd„ƒZdZ d Z d Z d Z d Z d ZdZdZdd„Z‡ZS)z-TestFlag.test_subclass_a_bunch..Colorr1cSs$d|}t ||¡}||_||_|Srr|r}rXrXrYrps  z5TestFlag.test_subclass_a_bunch..Color.__new__c_sd|f|Sr%rXrñrXrXrYròvszCTestFlag.test_subclass_a_bunch..Color._generate_next_value_cs8t| |¡ƒ}d dd„|Dƒ¡}tˆ|ƒ ||¡}|S)Nr~css|] }|jVqdSr³rršrXrXrYr€}szWTestFlag.test_subclass_a_bunch..Color._create_pseudo_member_..r2r3r/rXrYr-yszDTestFlag.test_subclass_a_bunch..Color._create_pseudo_member_r†r‡rˆr‰r‹rŒrrŽcSs@|jdk rd|jj|jfSd|jjd dd„|Dƒ¡fSdS)Nrdrr‘cSsg|] }|j‘qSrXr«ršrXrXrYrszJTestFlag.test_subclass_a_bunch..Color.__repr__..rFrŒrXrXrYr&Œs z6TestFlag.test_subclass_a_bunch..Color.__repr__)rfrgrhr¿rrôròrMr-rržrŸr r¡r¢r£r¤r&rirXr°rdrYrÃns rÃzz34;45zFG_Blue|BG_Magenta) rrr¢r rOrùr©rèrr¬)r`ZPurplerXr°rYÚtest_subclass_a_bunchms$  zTestFlag.test_subclass_a_bunchcs<G‡‡fdd„dtƒ‰G‡fdd„dˆƒ‰Gdd„dˆƒ}Gdd„d|ƒ}ˆ ˆjd d¡ˆ |jd d¡ˆ |jd d¡ˆ |j d d ¡¡ˆ |j d d ¡¡Gd d „d ˆƒ}Gdd„d|ƒ}Gdd„d|ƒ}ˆ |jd d¡ˆ |j d d ¡¡ˆ |jd d ¡ˆ |j d d ¡¡ˆ |j d d ¡¡dS)Ncs eZdZ‡‡‡fdd„Z‡ZS)z+TestFlag.test_init_subclass..MyEnumcs0tˆ|ƒjf|Žˆ |j dd¡¡d|_dSrr r$r%rXrYr!œsz=TestFlag.test_init_subclass..MyEnum.__init_subclass__r&rXr'rdrYr(›sr(cseZdZ‡‡fdd„Z‡ZS)z.TestFlag.test_init_subclass..TheirEnumcstˆ|ƒjf|Žd|_dSr(r*r$r,rXrYr!¢sz@TestFlag.test_init_subclass..TheirEnum.__init_subclass__r&rXr-rdrYr)¡sr)c@seZdZdd„ZdS)z.TestFlag.test_init_subclass..WhoseEnumc[sdSr³rXr$rXrXrYr!¦sz@TestFlag.test_init_subclass..WhoseEnum.__init_subclass__Nr.rXrXrXrYr/¥sr/c@seZdZdZdS)z+TestFlag.test_init_subclass..NoEnumrkNr0rXrXrXrYr1¨sr1r#r+Fc@seZdZdd„ZdS)z,TestFlag.test_init_subclass..OurEnumc[s d|_dSr2r4r$rXrXrYr!±sz>TestFlag.test_init_subclass..OurEnum.__init_subclass__Nr.rXrXrXrYr3°sr3c@seZdZdd„ZdS)z.TestFlag.test_init_subclass..WhereEnumc[sdSr³rXr$rXrXrYr!´sz@TestFlag.test_init_subclass..WhereEnum.__init_subclass__Nr.rXrXrXrYr5³sr5c@seZdZdZdS)z.TestFlag.test_init_subclass..NeverEnumrkNr0rXrXrXrYr6¶sr6)rrèrãrMr"r7rXr8rYr9šs"zTestFlag.test_init_subclasscCshGdd„dtƒ}| |j|dƒ¡| |j|jB|dƒ¡| |j|dƒ¡| |j|jB|dƒ¡dS)Nc@s eZdZdZdZdZdZdZdS)z/TestFlag.test_int_long_conversion..PermrkrlruììN)rfrgrhZEXECÚWRITEÚREADÚMSB32ÚMSB64rXrXrXrYrt¿s rtrLlrMl)rrèrPrNrQ©r`rtrXrXrYÚtest_int_long_conversion¾s z!TestFlag.test_int_long_conversionN)8rfrgrhr·rárñrrûr­r¯r±rbr´rr¹rÊrÍrÑrÖr×rÙrXrærèrérÔrÖrØrÛrÝrõrör÷rúrrûrrrrüÚunittestÚ skipUnlessrr(r0r5r8r=r>r?rArGrJrKr9rSrXrXrXrYrn"sh]$      )  .  ( !# $!'. -$rnc@süeZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„Zd0d1„Zd2d3„Zd4d5„Ze e d6¡d7d8„ƒZ!d9d:„Z"d;S)<Ú TestIntFlagzTests of the IntFlags.cCsFGdd„dtƒ}Gdd„dtƒ}Gdd„dtƒ}||_||_||_dS)Nc@seZdZdZdZdZdZdS)zTestIntFlag.setUp..PermrorurlrkNrprXrXrXrYrtÔsrtc@s$eZdZdZdZdZdZeeBZdS)z TestIntFlag.setUp..ColorrrkrlruN)rfrgrhr‹r6r8r7rurXrXrXrYrÃÚs rÃc@s$eZdZdZdZdZdZdZdZdS)zTestIntFlag.setUp..Openúnot a good flag candidaterrkrlrmr¦N© rfrgrhr·r§r¨r©rªr«rXrXrXrYr¬ás r¬)rrtrÃr¬)r`rtrÃr¬rXrXrYráÒs zTestIntFlag.setUpcsxGdd„dtƒ‰G‡fdd„dtƒ}| t|ƒ|jg¡| |jjd¡d|j_| |jjd¡| |jjdd¡dS)Nc@s*eZdZdZddd„Zdd„Zdd„ZdS) z-TestIntFlag.test_set_name..DescriptorNcSs|dkr |S|j|jSdSr³rârärXrXrYr»ðsz5TestIntFlag.test_set_name..Descriptor.__get__cSs||j|j<dSr³rârårXrXrYrKõsz5TestIntFlag.test_set_name..Descriptor.__set__cSs ||_dSr³r«rærXrXrYrè÷sz:TestIntFlag.test_set_name..Descriptor.__set_name__)NrérXrXrXrYrêîs rêcseZdZdZ”ƒZdS)z)TestIntFlag.test_set_name..AnEnumrkNrërXrìrXrYríúsrír£rîrïrðrXrìrYrñís zTestIntFlag.test_set_namecCsdGdd„dtƒ}| t|ƒd¡| |jd¡| t|jtƒ¡| |jd¡| t|jtƒ¡dS)Nc@seZdZdZdZdS)z/TestIntFlag.test_private_names..PrivateròróNrôrXrXrXrYr÷sr÷rròrórørúrXrXrYrûs zTestIntFlag.test_private_namescCsˆ|j}|j}| d|k¡| d|k¡| |j|k¡| |j|k¡| |j|k¡| |j|k¡| d|k¡| d|k¡dS)Nr8r©rl)rÃr¬rMrOr8r©r°rXrXrYr±szTestIntFlag.test_membershipcsR|j‰| t‡fdd„¡| dˆjk¡| ˆjˆjk¡| ˆjˆjk¡dS)Ncs dˆjkSr_)r6rXr°rXrYr±r²z2TestIntFlag.test_member_contains..rk)rÃr@rÍrOr6rurŒrXr°rYrbs z TestIntFlag.test_member_containscCsL|j}| |j|dk¡| |j|jB|dk¡| |j|dk¡dSrËrÌrÅrXrXrYrÍ!szTestIntFlag.test_name_lookupcCs¸|j}|j}|D]"}| t||ƒ¡| ||j¡q| t|j|jB|ƒ¡| |j|jBd¡|D]"}| t||ƒ¡| ||j¡qd| t|j|j B|ƒ¡| |j|j Bd¡dSrq) rtr¬rOrùrèrérrrsr¨r©)r`rtr¬rGrXrXrYÚ test_type'szTestIntFlag.test_typecCsð|j}| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd¡| t|jƒd¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|d ƒƒd¡|j}| t|jƒd¡| t|jƒd¡| t|j ƒd¡| t|j|j Bƒd ¡| t|j|j Bƒd ¡| t|jƒd ¡| t|jƒd¡| t|j ƒd ¡| t|j|j Bƒd¡| t|j|j Bƒd¡dS)Nr…r„rÚ6Ú7rrÚ3Ú5rPZ524288Z524289Z524291Z524290r·r¸rXrXrYr¹6s0 zTestIntFlag.test_strc CsGdd„dtƒ}tj|_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd ¡| t|jƒd ¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd ¡|  t d ¡t|jd BƒW5QRX|  t d ¡t|jd BƒW5QRX|  t d¡t|dƒƒW5QRXGdd„dtƒ}tj|_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd ¡| t|jƒd ¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd ¡|  t d ¡t|jd BƒW5QRX|  t d ¡t|jd BƒW5QRX|  t d¡t|dƒƒW5QRXdS)Nc@seZdZdZdZdZdZdS)ú*TestIntFlag.test_repr_strict..PermrorurlrkNrprXrXrXrYrtSsrtrºr»r¼r½r¾rr¿rÀrÁz12 is not a valid PermrÛz-9 is not a valid Permé÷ÿÿÿc@s eZdZdZdZdZdZdZdS)r^rorurlrkr’N©rfrgrhr¿rqrrrsÚFUTURErXrXrXrYrtms ) rrSrÚ _boundary_rèr+rqrrrsr\rœrRrXrXrYÚtest_repr_strictQsL  zTestIntFlag.test_repr_strictcCsÌGdd„dtƒ}tj|_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd ¡| t|jƒd ¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd ¡| t|jd Bƒd¡| t|d ƒƒd ¡| t|jd Bƒd ¡| t|d ƒƒd¡Gdd„dtƒ}tj|_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd ¡| t|jƒd ¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd ¡| t|jd Bƒd¡| t|d ƒƒd ¡| t|jd Bƒd ¡| t|d ƒƒd¡dS)Nc@seZdZdZdZdZdZdS)ú+TestIntFlag.test_repr_conform..PermrorurlrkNrprXrXrXrYrt‰srtrºr»r¼r½r¾rr¿rÀrÁrÛr_c@s eZdZdZdZdZdZdZdS)rdrorurlrkr’Nr`rXrXrXrYrt s © rrSrrbrèr+rqrrrsrRrXrXrYÚtest_repr_conform‡sD  zTestIntFlag.test_repr_conformcCs¼Gdd„dtƒ}| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd ¡| t|jƒd ¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd ¡| t|jd Bƒd ¡| t|d ƒƒd¡| t|jd Bƒd¡| t|dƒƒd¡Gdd„dtƒ}| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd ¡| t|jƒd ¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd ¡| t|jd Bƒd ¡| t|d ƒƒd¡| t|jd Bƒd¡| t|dƒƒd¡dS)Nc@s eZdZdZeZdZdZdZdS)ú)TestIntFlag.test_repr_eject..PermrorurlrkN) rfrgrhr¿rrbrqrrrsrXrXrXrYrt¹s rtrºr»r¼r½r¾rr¿rÀrÁrÛZ12Ú8z-13r_z-9c@s$eZdZdZeZdZdZdZdZ dS)rgrorurlrkr’N) rfrgrhr¿rrbrqrrrsrarXrXrXrYrtÐs )rrèr+rqrrrsrRrXrXrYÚtest_repr_eject·s@  zTestIntFlag.test_repr_ejectcCsÌGdd„dtƒ}tj|_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd ¡| t|jƒd ¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd ¡| t|jd Bƒd¡| t|d ƒƒd ¡| t|jd Bƒd ¡| t|d ƒƒd¡Gdd„dtƒ}tj|_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd¡| t|dƒƒd ¡| t|jƒd ¡| t|jƒd ¡| t|jƒd¡| t|j|jBƒd¡| t|j|jB|jBƒd ¡| t|jd Bƒd¡| t|d ƒƒd ¡| t|jd Bƒd ¡| t|d ƒƒd¡dS)Nc@seZdZdZdZdZdZdS)ú(TestIntFlag.test_repr_keep..PermrorurlrkNrprXrXrXrYrtésrtrºr»r¼r½r¾rr¿rÀrÁrÛr_c@s eZdZdZdZdZdZdZdS)rjrorurlrkr’Nr`rXrXrXrYrts rerRrXrXrYÚtest_repr_keepçsD  zTestIntFlag.test_repr_keepc CsfGdd„dtƒ}tj|_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|j Bƒd¡| t|j|j Bƒd¡| t|jƒd¡| t|jƒd ¡| t|jƒd¡| t|j|j Bƒd¡| t|j|j Bƒd ¡|  t d ¡t|d ƒƒW5QRX|  t d ¡t|dƒƒW5QRXGdd„dtƒ}tj |_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|j Bƒd¡| t|j|j Bƒd¡| t|jƒd¡| t|jƒd ¡| t|jƒd¡| t|j|j Bƒd¡| t|j|j Bƒd ¡| t|d ƒƒd¡| t|dƒƒd¡Gdd„dtƒ}tj |_| t|jƒd¡| t|jƒd¡| t|jƒd¡| t|j|j Bƒd¡| t|j|j Bƒd¡| t|jƒd¡| t|jƒd ¡| t|jƒd¡| t|j|j Bƒd¡| t|j|j Bƒd ¡| t|d ƒƒd¡| t|dƒƒd¡dS)Nc@s$eZdZdZdZdZdZdZdZdS©z(TestIntFlag.test_repr_open..OpenrWrrkrlrmr¦NrXrXrXrXrYr¬s r¬rÂrÃrÄrÅrÆrÇrÈrÉz-5 is not a valid Openrtz4 is not a valid Openruc@s$eZdZdZdZdZdZdZdZdSrlrXrXrXrXrYr¬/s c@s$eZdZdZdZdZdZdZdZdSrlrXrXrXrXrYr¬Ds z-5r…)rrSrrbrèr+r§r¨rªr«r\rœrr)r`r¬rXrXrYÚtest_repr_opensXzTestIntFlag.test_repr_opencCsL|j}|D]æ}|D]J}| ||B|j|jB¡| ||Bj|j|jB¡| t||Bƒ|¡qtdƒD]ˆ}| ||B|j|B¡| ||Bj|j|B¡| t||Bƒ|¡| ||B||jB¡| ||Bj||jB¡| t||Bƒ|¡qfq |D]4}| ||B|¡| |dB|¡| d|B|¡qö|j}| |j|jB|j¡dS©NrÛr© rtrèrér©rr—r¬r§r«rÏrXrXrYrÑYs& zTestIntFlag.test_orc Cs¾|j}|j|jB}|j|jB}|j|jB}|j|jB|jB}t|ƒ|||||dƒg}|D]}|D]h}| ||@|j|j@d||f¡| ||@j|j|j@d||f¡| t||@ƒ|d||f¡qdt dƒD]ˆ}| ||@|j|@¡| ||@j|j|@¡| t||@ƒ|¡| ||@||j@¡| ||@j||j@¡| t||@ƒ|¡qÖqZ|D]6}| ||@|¡| |d@|¡| d|@|¡qf|j } | | j | j @| j ¡dS)Nrzi is %r, j is %rrÛrw) rtrqrrrsr´rèrér©rr—r¬r§r«rÒrXrXrYrÖns0    "$  zTestIntFlag.test_andcCsR|j}|D]æ}|D]J}| ||A|j|jA¡| ||Aj|j|jA¡| t||Aƒ|¡qtdƒD]ˆ}| ||A|j|A¡| ||Aj|j|A¡| t||Aƒ|¡| ||A||jA¡| ||Aj||jA¡| t||Aƒ|¡qfq |D]$}| |dA|¡| d|A|¡qö|j}| |j|jA|j¡| |j|jA|j¡dSrnrorÏrXrXrYr׈s& zTestIntFlag.test_xorc Csî|j}|j|jB}|j|jB}|j|jB}|j|jB|jB}t|ƒ|||||dƒg}|D]8}| ||j¡| t|ƒ|¡| ||¡qZ|D]}| ||¡q˜|j }| |j |j @|j ¡| |j |j B|j @|j ¡dSr‹) rtrqrrrsr´rèrér©rr¬r¨r§r«rØrXrXrYrÙs   zTestIntFlag.test_invertcCsj|j}|j|jA}|j|jB|jB}| t|ƒg¡| t|jƒ|jg¡| t|ƒ|j|j|jg¡dSr³)rtrqrrrsrèr´)r`rtZNoPermrÕrXrXrYÚ test_iter®s  zTestIntFlag.test_itercCsÐtddƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td ¡ƒD]n\}}d|>}||ƒ}| |j |¡| t |j ƒt ¡| ||¡| |j |¡|  ||¡| t |ƒ|¡q\dSrê©rr´rèr³rqrrrsr(r)rérrþr¬rìr©rírXrXrYrÔ¶s   z,TestIntFlag.test_programatic_function_stringcCsÔtdddd}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td ¡ƒD]n\}}d|>}||ƒ}| |j |¡| t |j ƒt ¡| ||¡| |j |¡|  ||¡| t |ƒ|¡q`dSrïrqrírXrXrYrÖÆs  z7TestIntFlag.test_programatic_function_string_with_startcCsÖtddddgƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td ¡ƒD]n\}}d|>}||ƒ}| |j |¡| t |j ƒt ¡| ||¡| |j |¡|  ||¡| t |ƒ|¡qbdSrðrqrírXrXrYrØÖs  z1TestIntFlag.test_programatic_function_string_listcCsØtddƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td ¡ƒD]v\}}dd|d>}||ƒ}| |j |¡| t |j ƒt ¡| ||¡| |j |¡|  ||¡| t |ƒ|¡q\dSrñrqrírXrXrYrÛæs   z.TestIntFlag.test_programatic_function_iterablecCsÜtdtdƒƒ}t|ƒ}| t|ƒt|ƒ¡| t|ƒd|¡| ||j|j|jg¡td  ¡ƒD]v\}}dd|d>}||ƒ}| |j |¡| t |j ƒt ¡| ||¡| |j |¡| ||¡| t |ƒ|¡q`dSrñ)rr7r´rèr³rqrrrsr(r)rérrþr¬rìr©rírXrXrYrÝös  z/TestIntFlag.test_programatic_function_from_dictc Csà|j}|\}}}||B}||B}||B}||B|B}| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡| ||k¡dSr³rørùrXrXrYrús$  zTestIntFlag.test_containmentcCsD|j}|D]}| |¡q |j}|D]}| t|jƒt|ƒ¡q$dSr³rÚrÛrXrXrYrXs  zTestIntFlag.test_boolcs\Gdd„dtƒ}Gdd„dtƒ‰Gdd„d|tƒ}| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| t|jƒd ¡G‡fd d„d|ˆtƒ}| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| t|jƒd ¡G‡fdd„dˆ|tƒ}| |jjd¡| |jjd¡| |jjd ¡| |jjd ¡| t|jƒd ¡dS)Nc@seZdZedd„ƒZdS)z1TestIntFlag.test_multiple_mixin..AllMixincSs<t|ƒ}d}|r2|d}|dd…D] }||O}q$||_|SrrrrXrXrYr$s z5TestIntFlag.test_multiple_mixin..AllMixin.ALLNrrXrXrXrYr#src@seZdZdd„ZdS)z1TestIntFlag.test_multiple_mixin..StrMixincSs |j ¡Sr³rèrŒrXrXrYr$/sz9TestIntFlag.test_multiple_mixin..StrMixin.__str__NrérXrXrXrYrê.srêc@s"eZdZdZeƒZeƒZeƒZdS©z.TestIntFlag.test_multiple_mixin..ColorróNrôrXrXrXrYrÃ1srÃrkrlrurwr…cs(eZdZdZ”jZeƒZeƒZeƒZdSrr© rfrgrhr¿r$r"r6r8r7rX©rêrXrYrÃ;s rÂcs(eZdZdZ”jZeƒZeƒZeƒZdSrrrsrXrtrXrYrÃFs ) rrrèr6rér8r7rr)r`rrÃrXrtrYrü"s( zTestIntFlag.test_multiple_mixinr csŒGdd„dtƒ‰tƒ‰dg‰‡‡‡fdd„‰‡fdd„tdƒDƒ}|D] }| ¡qF|D] }| ¡qX| ˆd d ¡| d tˆƒd ¡dS) Nc@sPeZdZdZeƒZeƒZeƒZeƒZeƒZ eƒZ eƒZ eƒZ dd„Z dd„ZdS)z3TestIntFlag.test_unique_composite..TestFlagr cSs||kSr³rXr–rXrXrYr—_sz:TestIntFlag.test_unique_composite..TestFlag.__eq__cSs t|jƒSr³r rŒrXrXrYrÂasz.TestFlag.__hash__NrrXrXrXrYrnUsrnFcsBz tdƒD]}ˆ ˆ|ƒ¡q Wntk r<dˆd<YnXdSrrrrrXrYrfs  z5TestIntFlag.test_unique_composite..cycle_enumcsg|]}tjˆd‘qSrrr r!rXrYrmsÿz5TestIntFlag.test_unique_composite..rÛrr"rr#)rr†r—r¡rrMrèr³r$rXr'rYr(Rs  þ  þz!TestIntFlag.test_unique_compositecs<G‡‡fdd„dtƒ‰G‡fdd„dˆƒ‰Gdd„dˆƒ}Gdd„d|ƒ}ˆ ˆjd d¡ˆ |jd d¡ˆ |jd d¡ˆ |j d d ¡¡ˆ |j d d ¡¡Gd d „d ˆƒ}Gdd„d|ƒ}Gdd„d|ƒ}ˆ |jd d¡ˆ |j d d ¡¡ˆ |jd d ¡ˆ |j d d ¡¡ˆ |j d d ¡¡dS)Ncs eZdZ‡‡‡fdd„Z‡ZS)z.TestIntFlag.test_init_subclass..MyEnumcs0tˆ|ƒjf|Žˆ |j dd¡¡d|_dSrr r$r%rXrYr!}sz@TestIntFlag.test_init_subclass..MyEnum.__init_subclass__r&rXr'rdrYr(|sr(cseZdZ‡‡fdd„Z‡ZS)z1TestIntFlag.test_init_subclass..TheirEnumcstˆ|ƒjf|Žd|_dSr(r*r$r,rXrYr!ƒszCTestIntFlag.test_init_subclass..TheirEnum.__init_subclass__r&rXr-rdrYr)‚sr)c@seZdZdd„ZdS)z1TestIntFlag.test_init_subclass..WhoseEnumc[sdSr³rXr$rXrXrYr!‡szCTestIntFlag.test_init_subclass..WhoseEnum.__init_subclass__Nr.rXrXrXrYr/†sr/c@seZdZdZdS)z.TestIntFlag.test_init_subclass..NoEnumrkNr0rXrXrXrYr1‰sr1r#r+Fc@seZdZdd„ZdS)z/TestIntFlag.test_init_subclass..OurEnumc[s d|_dSr2r4r$rXrXrYr!’szATestIntFlag.test_init_subclass..OurEnum.__init_subclass__Nr.rXrXrXrYr3‘sr3c@seZdZdd„ZdS)z1TestIntFlag.test_init_subclass..WhereEnumc[sdSr³rXr$rXrXrYr!•szCTestIntFlag.test_init_subclass..WhereEnum.__init_subclass__Nr.rXrXrXrYr5”sr5c@seZdZdZdS)z1TestIntFlag.test_init_subclass..NeverEnumrkNr0rXrXrXrYr6—sr6)rrèrãrMr"r7rXr8rYr9{s"zTestIntFlag.test_init_subclassN)#rfrgrhr·rárñrûr±rbrÍrYr¹rcrfrirkrmrÑrÖr×rÙrprÔrÖrØrÛrÝrúrXrürTrUrr(r9rXrXrXrYrVÏs<  6000B0  (rVc@s$eZdZdd„Zdd„Zdd„ZdS)ÚTestEmptyAndNonLatinStringsc Cs$| t¡tddƒ}W5QRXdS)NÚ empty_abc)r”rÅrÆ)r@rœr)r`rvrXrXrYÚtest_empty_string¢s z-TestEmptyAndNonLatinStrings.test_empty_stringcCs&tddƒ}t|dƒ}| |jd¡dS)NÚ greek_abc)õαrÅrÆryrk©rr]rèré)r`rxÚitemrXrXrYÚtest_non_latin_character_string¦s  z;TestEmptyAndNonLatinStrings.test_non_latin_character_stringcCs&tddƒ}t|dƒ}| |jd¡dS)NÚ hebrew_123)õ×r„r\r~rkrz)r`r}r{rXrXrYÚtest_non_latin_number_string«s  z8TestEmptyAndNonLatinStrings.test_non_latin_number_stringN)rfrgrhrwr|rrXrXrXrYru sruc@s(eZdZdZdd„Zdd„Zdd„ZdS) Ú TestUniquez82.4 doesn't allow class decorators, use function syntax.cCs4Gdd„dtƒ}t|ƒGdd„dtƒ}t|ƒdS)Nc@seZdZdZdZdZdS)z+TestUnique.test_unique_clean..Cleanrkrg@N)rfrgrhr¢r£rrXrXrXrYÚCleanµsrc@seZdZdZdZdZdS)z-TestUnique.test_unique_clean..CleanerrkrlrmN)rfrgrhrÆÚdoublerÇrXrXrXrYÚCleanerºsrƒ)rrr)r`rrƒrXrXrYÚtest_unique_clean´szTestUnique.test_unique_cleancCs¾zGdd„dtƒ}t|ƒWn*tk rFt ¡d}|jd}YnX| d|k¡zGdd„dtƒ}t|ƒWn*tk rœt ¡d}|jd}YnX| d|k¡| d |k¡dS) Nc@seZdZdZdZdZdZdS)z+TestUnique.test_unique_dirty..Dirtyzone tworkrN)rfrgrhr r¢r£rrXrXrXrYÚDirtyÂsr…rkrz tres -> onec@s eZdZdZdZdZdZdZdS)z-TestUnique.test_unique_dirty..Dirtierz single triplerkrmN)rfrgrhr rÆr‚rÇÚturkeyrXrXrXrYÚDirtierÎs r‡zdouble -> singlezturkey -> triple)rrrœr™ršrarOr)r`r…r¤Úmessager‡rXrXrYÚtest_unique_dirtyÀs    zTestUnique.test_unique_dirtycCs,tGdd„dtƒƒ}tGdd„dtƒƒ}dS)Nc@seZdZdZdZdZdS)z/TestUnique.test_unique_with_name..SillyrkrrmNrÃrXrXrXrYrÄÜsrÄc@seZdZdZdZdZdZdS)z1TestUnique.test_unique_with_name..SillierrkrlrmruNrÅrXrXrXrYrÈásrÈ)rrrrÉrXrXrYÚtest_unique_with_nameÛsz TestUnique.test_unique_with_nameN)rfrgrhr·r„r‰rŠrXrXrXrYr€±s r€c@sìeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Zd5d6„Zd7d8„Zd9S):ÚTestNamedTuplecCsàGdd„dtƒ}|dddƒ}|dddƒ}| |dd¡| |d d¡| |d d¡| |dd¡| |d d¡| |d d¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡dS) Nc@seZdZdZdZdZdS)z5TestNamedTuple.test_explicit_indexing..PersonrrkrlN©rfrgrhÚagerfrrXrXrXrYÚPersonìsrŽéÚJohnÚDoeéÚJanerrkrl©rrèrrfr©r`rŽÚp1Úp2rXrXrYÚtest_explicit_indexingës  z%TestNamedTuple.test_explicit_indexingcCsàGdd„dtƒ}|dddƒ}|dddƒ}| |dd¡| |d d¡| |d d¡| |dd¡| |d d¡| |d d¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡dS) Nc@seZdZdZdZdZdZdS)z5TestNamedTuple.test_implicit_indexing..Personúage first lastú person's agezperson's first nameúperson's last nameN)rfrgrhr rrfrrXrXrXrYrŽsrŽrrr‘r’r“rrkrlr”r•rXrXrYÚtest_implicit_indexingÿs  z%TestNamedTuple.test_implicit_indexingcCsGdd„dtƒ}|ddddƒ}|dddd ƒ}| |d d¡| |d d¡| |d d¡| |dd¡| |d d¡| |d d¡| |d d¡| |dd ¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd ¡dS) Nc@seZdZdZdZdZdZdS)z2TestNamedTuple.test_mixed_indexing..Personz age last carsrš)rlr›z person's carsN)rfrgrhr rrÚcarsrXrXrXrYrŽsrŽrrr‘rmr’r“rqrrkrl©rrèrrrr•rXrXrYÚtest_mixed_indexings"z"TestNamedTuple.test_mixed_indexingcCs4Gdd„dtƒ}| t|tƒ¡| t|tƒ¡dS)Nc@seZdZdZdZdZdS)z.TestNamedTuple.test_issubclass..PersonrrkrlNrŒrXrXrXrYrŽ,srŽ©rrOrûrA©r`rŽrXrXrYÚtest_issubclass+szTestNamedTuple.test_issubclasscCsPGdd„dtƒ}|dddƒ}| t||ƒ¡| t|tƒ¡| t|tƒ¡dS)Nc@seZdZdZdZdZdS)z.TestNamedTuple.test_isinstance..PersonrrkrlNrŒrXrXrXrYrŽ4srŽrrr‘©rrOrùrA©r`rŽr–rXrXrYÚtest_isinstance3s  zTestNamedTuple.test_isinstancecCsÚtddƒ}|dddƒ}|dddƒ}| |dd¡| |d d¡| |d d¡| |dd¡| |d d¡| |d d¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡dS) NrŽ)©rr)rfrk©rrlrrr‘r’r“rrkrlr”r•rXrXrYÚ+test_explicit_indexing_after_functional_api=s   z:TestNamedTuple.test_explicit_indexing_after_functional_apicCsÚtddƒ}|dddƒ}|dddƒ}| |dd¡| |d d¡| |d d¡| |dd¡| |d d¡| |d d¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡dS) NrŽr™rrr‘r’r“rrkrlr”r•rXrXrYÚ+test_implicit_indexing_after_functional_apiNs   z:TestNamedTuple.test_implicit_indexing_after_functional_apicCsþtddƒ}|ddddƒ}|dddd ƒ}| |d d¡| |d d¡| |d d¡| |dd¡| |d d¡| |d d¡| |d d¡| |dd ¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd¡| |jd ¡dS) NrŽ)r¦r§)rrmrrr‘rmr’r“rqrrkrlržr•rXrXrYÚ(test_mixed_indexing_after_functional_api_s" z7TestNamedTuple.test_mixed_indexing_after_functional_apicCs.tddƒ}| t|tƒ¡| t|tƒ¡dS)NrŽr™r r¡rXrXrYÚ$test_issubclass_after_functional_apirs z3TestNamedTuple.test_issubclass_after_functional_apicCsJtddƒ}|dddƒ}| t||ƒ¡| t|tƒ¡| t|tƒ¡dS)NrŽr™rrr‘r£r¤rXrXrYÚ$test_isinstance_after_functional_apiws   z3TestNamedTuple.test_isinstance_after_functional_apicCsvtddƒ}|dddd}| |dd¡| |dd¡| |d d¡| |jd¡| |jd¡| |jd¡dS) NrŽr™rrr‘)rrfrrrkrlr”r¤rXrXrYÚtest_creation_with_all_keywords~s z.TestNamedTuple.test_creation_with_all_keywordscCsÞtddƒ}|dddd}| |dd¡| |dd¡| |d d¡| |jd¡| |jd¡| |jd¡|dddd }| |dd¡| |dd¡| |d d¡| |jd¡| |jd¡| |jd¡dS) NrŽr™rrr‘)rfrrrkrl)rrfr”r¤rXrXrYÚ test_creation_with_some_keywordsˆs z/TestNamedTuple.test_creation_with_some_keywordscsJG‡fdd„dtƒ‰ˆdƒ}| |jd¡| |jd¡| |jd¡dS)Ncs*eZdZdZdZdZ‡‡fdd„Z‡ZS)z,TestNamedTuple.test_custom_new..Bookrrkrlcs.dd„| d¡Dƒ}tˆ|ƒj|ft|ƒžŽS)NcSsg|] }| ¡‘qSrX)r`)r›rbrXrXrYrŸszHTestNamedTuple.test_custom_new..Book.__new__..r~)r)r^rrA)rrCra)ÚBookrerXrYržsz4TestNamedTuple.test_custom_new..Book.__new__)rfrgrhrRÚauthorÚgenrerrirX©r¯rdrYr¯šsr¯z&The Last Mohican; John Doe; HistoricalzThe Last MohicanúJohn DoeZ Historical)rrèrRr°r±)r`Úb1rXr²rYÚtest_custom_new™s zTestNamedTuple.test_custom_newcCsxGdd„dtƒ}ddidddœdd d œd d d d œfD]>}|f|Ž}dD]*\}}||kr^||}| t||ƒ|¡qFq4dS)Nc@seZdZdZdZdZdS)z8TestNamedTuple.test_defaults_in_class..Characterr)rkNr)rlNÚfighterN)rfrgrhr¬ÚgenderÚklassrXrXrXrYÚ Character§sr¹r¬r³zWilliam PickneyZscholar)r¬r¸zSarah Doughteryr)r¬r·zSissy MoonbeamZ sorceress)r¬r·r¸)rP)r·r)r¸r¶)rrèr])r`r¹Úcharr¡r¬rérXrXrYÚtest_defaults_in_class¦s ü  z%TestNamedTuple.test_defaults_in_classcCs6Gdd„dtƒ}|ƒ}| |jd¡| |jd¡dS)Nc@seZdZdZdZdS)zDTestNamedTuple.test_defaults_in_class_that_are_falsey..Point)rzhorizondal coordinater)rkúvertical coordinaterNrwrXrXrXrYÚPoint¸sr½r)rrèrxry)r`r½rrXrXrYÚ&test_defaults_in_class_that_are_falsey·sz5TestNamedTuple.test_defaults_in_class_that_are_falseycCs*tttƒrt‚tdddƒ}t|j|ƒdS)Nrrr))rùr€r˜r¦rè)r`ÚlfrXrXrYÚ"test_pickle_namedtuple_with_module¿s  z1TestNamedTuple.test_pickle_namedtuple_with_modulecCs*tttƒrt‚tdddƒ}t|j|ƒdS)Nz sickly greenZ2x4Zfoul)rùrƒr˜r¦rè)r`ZdfrXrXrYÚ%test_pickle_namedtuple_without_moduleÅs  z4TestNamedTuple.test_pickle_namedtuple_without_modulecCsFtttƒrt‚tddƒ}| |jd¡| | ¡d¡t|j|ƒdS)NZHenryZ Weinhardt)rùrŽr˜rèrrOrr¦)r`ÚtirXrXrYrõËs   zTestNamedTuple.test_subclassingcCsDtddƒ}|dddƒ}| d|k¡| d|k¡| d|k¡dS)Nr¯ztitle author genreÚTecklaú Steven BrustÚfantasy)rrO©r`r¯r{rXrXrYr^Ós   zTestNamedTuple.test_containscCs„Gdd„dtƒ}|dddƒ}| d|k¡| d|k¡| d|k¡| |jd¡| |jd¡| t|dd¡| t|d¡dS)Nc@seZdZejZdZdZdZdS)z,TestNamedTuple.test_fixed_size..BookrrkrlN) rfrgrhrZfixedÚ_size_rRr°r±rXrXrXrYr¯Ûsr¯rÃrÄrÅ©rrOrèrRr°r@rÍrÆrXrXrYÚtest_fixed_sizeÚs zTestNamedTuple.test_fixed_sizecCs¶Gdd„dtƒ}|dddƒ}| d|k¡| d|k¡| d|k¡| |jd¡| |jd¡|ddƒ}| d|k¡| d|k¡| |jd¡| |jd¡| t|d¡dS)Nc@seZdZejZdZdZdS)z.TestNamedTuple.test_minimum_size..BookrrkN)rfrgrhrÚminimumrÇrRr°rXrXrXrYr¯êsr¯rÃrÄrÅrÈrÆrXrXrYÚtest_minimum_sizeés  z TestNamedTuple.test_minimum_sizecCsèGdd„dtƒ}|dddƒ}| d|k¡| d|k¡| d|k¡| |jd¡| |jd¡| |jd¡|ddƒ}| d|k¡| d|k¡| |jd¡| |jd¡| tt|d¡|jt |ddd|jt |dddS) Nc@seZdZejZdZdZdZdS)z/TestNamedTuple.test_variable_size..BookrrkrlN) rfrgrhrÚvariablerÇrRr°r±rXrXrXrYr¯üsr¯rÃrÄrÅr±)rRr±)r°) rrOrèrRr°r±r@r§r]rÍrÆrXrXrYÚtest_variable_sizeûs   z!TestNamedTuple.test_variable_sizecCsnGdd„dtƒ}Gdd„dtƒ}td||td}Gdd„d||ƒ}Gd d „d |ƒ}| |jd  ¡¡| |jjd ¡| |jjd ¡| |jjd¡| |jjd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |jd  ¡¡| |jjd ¡| |jjd ¡| |jjd¡| |jjd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |jd  ¡¡| |jjd ¡| |jjd ¡| |jjd¡| |jjd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡| |j jd¡dS)Nc@seZdZdZdZdS)z8TestNamedTuple.test_combining_namedtuples..Point©rúhorizontal coordinaterk©rkr¼rPNrwrXrXrXrYr½sr½c@seZdZdZdZdZdS)z8TestNamedTuple.test_combining_namedtuples..Color©rú red componentr’©rkúgreen componenté©rlúblue componenté%N©rfrgrhryrzr{rXrXrXrYrÃsrÃÚPixelrc@seZdZdZdS)z9TestNamedTuple.test_combining_namedtuples..Pixel2z a colored dotN)rfrgrhr·rXrXrXrYÚPixel2srÛc@seZdZdZdZdZdS)z9TestNamedTuple.test_combining_namedtuples..Pixel3)rlrÒr’)rmrÔrÕ)rur×rØNrÙrXrXrXrYÚPixel3srÜz x y r g brÏrkr¼rPrÒr’rÔrÕr×rØ) rrfrèZ_fields_r)rxr·Údefaultryryrzr{)r`r½rÃZPixel1rÛrÜrXrXrYÚtest_combining_namedtuplessLz)TestNamedTuple.test_combining_namedtuplescCsbGdd„dtƒ}|ddddgƒ}|ddƒ}|d d ƒ}| |d ¡| t|ƒd ¡| |jd ¡dS)Nc@s$eZdZedd„ƒZedd„ƒZdS)z=TestNamedTuple.test_inherit_from_existing..OERecTuplecSs |d ¡Sr#)r^)rZrecrXrXrYÚ record_keyEszHTestNamedTuple.test_inherit_from_existing..OERecTuple.record_keycSs| |¡|d<dS)NrP)rßr:rXrXrYÚ_review_IszFTestNamedTuple.test_inherit_from_existing..OERecTuple._review_N)rfrgrhrMrßràrXrXrXrYÚ OERecTupleCs ráÚOERecrMZxmlidr>rkÚabc123rlZxyz789)rkrãÚABC123rmrä)rrèr³r>)r`rárâZoe_1Zoe_2rXrXrYÚtest_inherit_from_existingBs    z)TestNamedTuple.test_inherit_from_existingcCsHGdd„dtƒ}tdd|d}|dddƒ}| | ¡d dddgf¡dS) Nc@seZdZdd„ZdS)z5TestNamedTuple.test_function_api_type..TestercSsdtt|ƒƒfS)NÚ backwards)r´rÅrŒrXrXrYÚhowdyWsz;TestNamedTuple.test_function_api_type..Tester.howdyN)rfrgrhrçrXrXrXrYÚTesterVsrèÚTesteeza c erßrkrlrmræ)rrèrç)r`rèrér&rXrXrYÚtest_function_api_typeUs z%TestNamedTuple.test_function_api_typec CsbGdd„dtƒ}Gdd„dtƒ}td||td}|ddd d d ƒ}| | ¡ddd d d d œ¡dS) Nc@seZdZdZdZdS)z)TestNamedTuple.test_asdict..PointrÎrÐNrwrXrXrXrYr½^sr½c@seZdZdZdZdZdS)z)TestNamedTuple.test_asdict..ColorrÑrÓrÖNrÙrXrXrXrYrÃasrÃrÚrr¦i›ÿÿÿéÿrär)rxryryrzr{)rrfrèÚ_asdict)r`r½rÃrÚZpixelrXrXrYÚ test_asdict]s zTestNamedTuple.test_asdictcCs8Gdd„dtƒ}| |ddƒd¡| | d¡d¡dS)Nc@seZdZdZdZdS)z'TestNamedTuple.test_make..PointrÎrÐNrwrXrXrXrYr½jsr½rurv)rurv)rrèÚ_make)r`r½rXrXrYÚ test_makeiszTestNamedTuple.test_makecCs8Gdd„dtƒ}|dddƒ}|jdd}| |d¡dS)Nc@seZdZdZdZdZdS)z*TestNamedTuple.test_replace..ColorrÑrÓrÖNrÙrXrXrXrYrÃqsrÃér)rz)rðrðrð)rÚ_replacerè)r`rÃrÑZmid_grayrXrXrYÚ test_replaceps  zTestNamedTuple.test_replaceN)rfrgrhr˜rœrŸr¢r¥r¨r©rªr«r¬r­r®rµr»r¾rÀrÁrõr^rÉrËrÍrÞrårêrírïròrXrXrXrYr‹és8   1 r‹c@s<eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd S)ÚTestNamedConstantc Cs²Gdd„dtƒ}| |jd¡| |jd|j¡| td¡ d|_W5QRX| td¡ |`W5QRX| td¡|dd ƒW5QRX| |j|k¡| |j|k¡dS) Nc@seZdZdZdeZdS)z.TestNamedConstant.test_constantness..Kr°rlN)rfrgrhrÀrÁrXrXrXrYÚK}srôr°rlr²rqr³rÀrm)rrèrÀrÁr\r§rO)r`rôrXrXrYÚtest_constantness|sz#TestNamedConstant.test_constantnesscCsDGdd„dtƒ}| |j|jk¡| |j|j¡| |jd¡dS)Nc@s@eZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd Zd S) z5TestNamedConstant.test_duplicates..CardNumberr’rlrmrurvr2rwrÛrqrxN)rfrgrhZACErârãrrwrxryrzZNINEÚTENÚJACKZQUEENZKINGrXrXrXrYÚ CardNumberŒsrørx)rrMrör÷rè)r`rørXrXrYÚtest_duplicates‹sz!TestNamedConstant.test_duplicatescCsXGdd„dtƒ}| |jd¡|ddƒ}| ||j¡| |jd¡| |j|k¡dS)Nc@seZdZdZdZdZdZdS)z9TestNamedConstant.test_extend_constants..CardSuitrkrlrmruN)rfrgrhÚHEARTSZSPADESZDIAMONTSZCLUBSrXrXrXrYÚCardSuitŸsrûrkÚSTARSrv)rrèrúr©rürO)r`rûÚstarsrXrXrYÚtest_extend_constantsžs  z'TestNamedConstant.test_extend_constantscCsnGdd„dtƒ}| |jd¡| |jjd¡| |jd¡| |jjd¡| |jd¡| |jjd¡dS)Nc@s$eZdZeddƒZdZeddƒZdS)z=TestNamedConstant.test_constant_with_docstring..Stuffrwú lucky number!r’rÕú blah blahN)rfrgrhrÚArtifactÚBowlingÚHillWomprXrXrXrYÚStuff«s rrwrÿr’rÕr)rrèrr·rr)r`rrXrXrYÚtest_constant_with_docstringªsz.TestNamedConstant.test_constant_with_docstringcCsNddl}Gdd„dtjƒ}|dƒd|ji}| |¡| |d|jk¡dS)Nrc@seZdZdZdZdS)z2TestNamedConstant.test_deep_copy..APITypesrCrþN)rfrgrhÚSTRINGÚINTrXrXrXrYÚAPITypes¸srrCrf)ÚcopyrSÚConstantrÚdeepcopyrO)r`r rrÈrXrXrYÚtest_deep_copy¶s   z TestNamedConstant.test_deep_copycsNGdd„dtjƒ‰G‡fdd„dtjƒ}| ˆj|j¡| ˆj|jk¡dS)Nc@seZdZdZdZdS)z9TestNamedConstant.test_subclass_w_same_value..FooZbla1Zaba1N©rfrgrhÚBLAZABArXrXrXrYr/Ásr/cseZdZ”jZdZdS)z9TestNamedConstant.test_subclass_w_same_value..BarZaba2Nr rX©r/rXrYrÄsr)rSr rèrrM)r`rrXrrYÚtest_subclass_w_same_valueÀsz,TestNamedConstant.test_subclass_w_same_valueN) rfrgrhrõrùrþrr rrXrXrXrYrózs    róc@seZdZdd„ZdS)ÚTestStarImportcCs i}td||ƒ| d|¡dS)Nzfrom aenum import *r)Úexecrì)r`ÚscoperXrXrYÚtest_all_exports_namesÍs z%TestStarImport.test_all_exports_namesN)rfrgrhrrXrXrXrYrËsrc@s,eZdZdd„Zdd„Zdd„Zdd„Zd S) ÚTestStackoverflowAnswerscCsPGdd„dtƒ}|}| |jjd¡| |jj|jk¡| |jj|jk¡dS)Nc@s(eZdZdZdZdZdZdZdd„ZdS) zMTestStackoverflowAnswers.test_self_referential_directions..DirectionszNORTH WEST SOUTH EAST©rkr)rrk)rPr)rrPcSsN||_||_t|jƒrJt|jƒ}|d|d}}||_||_||_||_dS©NrrP)rxryr³rer´rjrk)r`rxryÚallrjrkrXrXrYr_Þs  zVTestStackoverflowAnswers.test_self_referential_directions..Directions.__init__N) rfrgrhr¿rÑrÐrÒrÏr_rXrXrXrYÚ DirectionsÖs rr) rrèrÑrérOrjrÐrÒrk)r`rrÇrXrXrYÚ test_self_referential_directionsÔs z9TestStackoverflowAnswers.test_self_referential_directionscCsPGdd„dtƒ}| |jj|jk¡| |jj|jk¡| |jj|jk¡dS)Nc@s$eZdZdZdZdZdZdd„ZdS)zOTestStackoverflowAnswers.test_self_referential_rock_paper_scissors..RPSzRock, Paper, ScissorsZrockZpaperÚscissorscSs6t|jƒr2t|jƒ}|d|d}}||_||_dSr)r³rer´Úbeats)r`rérrfÚpreviousrXrXrYr_øs   zXTestStackoverflowAnswers.test_self_referential_rock_paper_scissors..RPS.__init__N)rfrgrhr¿ÚRockÚPaperÚScissorsr_rXrXrXrYÚRPSñs r!)rrOrrr r)r`r!rXrXrYÚ)test_self_referential_rock_paper_scissorsïszBTestStackoverflowAnswers.test_self_referential_rock_paper_scissorsc Cs\Gdd„dtƒ}Gdd„d|ƒ}ttj td¡ƒ}| ¡}W5QRX| t  d¡|¡dS)Nc@seZdZdd„ZdS)z>TestStackoverflowAnswers.test_arduino_headers..CHeaderc [sX|j}t|d|ƒ}t|dƒ0}| d¡|D]}| d|j|jf¡q.W5QRXdS)Nz _%s__headerrNzinitial header stuff here z#define %s %r )rfr]rþrZr¬ré)rrbÚcls_nameZ header_pathÚfhr#rXrXrYr!s   zPTestStackoverflowAnswers.test_arduino_headers..CHeader.__init_subclass__Nr.rXrXrXrYÚCHeadersr%c@s&eZdZdZej ed¡ZdZ dZ dS)z>TestStackoverflowAnswers.test_arduino_headers..ArduinozONE TWOú arduino.hrkrlN) rfrgrhr¿rWrXrrYZ_Arduino__headerrárârXrXrXrYÚArduinosr'r&zv initial header stuff here #define ONE 1 #define TWO 2 ) rrþrWrXrrYÚreadrèÚtextwrapÚdedent)r`r%r'r$rHrXrXrYÚtest_arduino_headerss  ûz-TestStackoverflowAnswers.test_arduino_headerscs:G‡fdd„dtƒ‰Gdd„dˆtƒ}| | d¡¡dS)Ncs*eZdZ‡‡fdd„Zedd„ƒZ‡ZS)zITestStackoverflowAnswers.test_lowercase_compare..CompareLowerCasecs*tˆ|ƒjf|Žtdd„|Dƒƒ|_dS)NcSsg|]}|j ¡‘qSrXr¬ršrXrXrYr#szoTestStackoverflowAnswers.test_lowercase_compare..CompareLowerCase.__init_subclass__..)r^r!r†Ú lowered_namesr$)ÚCompareLowerCasererXrYr!!sz[TestStackoverflowAnswers.test_lowercase_compare..CompareLowerCase.__init_subclass__cSs| ¡|jkSr³)r­r,rŸrXrXrYÚhas_name$szRTestStackoverflowAnswers.test_lowercase_compare..CompareLowerCase.has_name)rfrgrhr!rMr.rirX©r-rdrYr- sr-c@s$eZdZdZdZdZdZdZdZdS)zBTestStackoverflowAnswers.test_lowercase_compare..LabelEnumzEnum OnezEnum Twoz Enum ThreerrwrxN) rfrgrhZENUM_ONEZENUM_TWOZ ENUM_THREErrwrxrXrXrXrYÚ LabelEnum(s r0Z Enum_Three)rrrOr.)r`r0rXr/rYÚtest_lowercase_comparesz/TestStackoverflowAnswers.test_lowercase_compareN)rfrgrhrr"r+r1rXrXrXrYrÒsrc@s„eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„ZdS) ÚTestExtendEnumcCsGdd„dtƒ}| tdt|dd¡t|ddƒ| |jjd¡| |jjd¡| |j|k¡| |dƒ|j¡| |d|j¡| t |ƒd¡t|dƒ| |j jd¡| |j jd¡| |j |k¡| |dƒ|j ¡| |d|j ¡| t |ƒd¡dS) Nc@seZdZdZdZdZdS)z4TestExtendEnum.test_extend_enum_plain..ColorrkrlrmNrörXrXrXrYrÃ6srÃzalready in use asrÂrvÚbrownruÚmauve) rr\rÍr!rèr3r¬rérOr³r4rÅrXrXrYÚtest_extend_enum_plain5s   z%TestExtendEnum.test_extend_enum_plaincCs„Gdd„dtƒ}t|ddƒ| |jjd¡| |jjd¡| |j|k¡| |dƒ|j¡| |d|j¡| t|ƒd¡dS)Nc@seZdZdZdZdZdS)z4TestExtendEnum.test_extend_enum_alias..ColorrkrlrmNrörXrXrXrYrÃMsrÃr<rkrÀrm) rr!rèr<r¬rérOrÀr³rÅrXrXrYÚtest_extend_enum_aliasLs z%TestExtendEnum.test_extend_enum_aliascCsGdd„dtƒ}| tdt|dd¡| |jjd¡| |jjd¡| |j|k¡| |dƒ|j¡| |d|j¡| |j jd¡| |j jd¡| |j |k¡| |dƒ|j ¡| |d |j ¡| |j jd ¡| |j jd ¡| |j |k¡| |d ƒ|j ¡| t |ƒd ¡t|d d ƒ| |j jd ¡| |j jd ¡| |j |k¡| |d ƒ|j ¡| |d |j ¡| t |ƒd ¡| td t|dd¡t|dƒ| |j jd¡| |j jd¡| |j |k¡| |dƒ|j ¡| |d|j ¡| t |ƒd¡dS)Nc@seZdZdZdZdZdS)z5TestExtendEnum.test_extend_enum_unique..ColorrkrlrmNrörXrXrXrYrÃZsrÃz0 is a duplicate of r<rkrÀrÁrlrÂrmr3rur”rÈr4rv)rr\rœr!rèrÀr¬rérOrÁrÂr³r3r4rÅrXrXrYÚtest_extend_enum_uniqueYs@  z&TestExtendEnum.test_extend_enum_uniquecCs”Gdd„dtƒ}t|ddƒ| |jjd¡| |jjd¡| |j|k¡| |dƒ|j¡| |d|j¡| t|ƒd¡| |jjd¡dS)Nc@seZdZdZdZdZdS)z>TestExtendEnum.test_extend_enum_shadow_property..ColorrkrlrmNrörXrXrXrYrÄsrÃrérurk)rr!rèrér¬rOr³rÀrÅrXrXrYÚ test_extend_enum_shadow_propertyƒs z/TestExtendEnum.test_extend_enum_shadow_propertycCsfGdd„dtƒ}Gdd„d|tƒ}| tdt|dd¡| t|ƒd¡| t|ƒ|j|j |j g¡dS) Nc@seZdZdd„ZdS)z:TestExtendEnum.test_extend_enum_shadow_base..hohumcSs|jS)rªr™rŒrXrXrYr“sz?TestExtendEnum.test_extend_enum_shadow_base..hohum.cyanN)rfrgrhrrXrXrXrYr¯’sr¯c@seZdZdZdZdZdS)z:TestExtendEnum.test_extend_enum_shadow_base..ColorrkrlrmNrörXrXrXrYrÖsrÃzalready in use in superclassrrurm) rrr\rÍr!rèr³r´rÀrÁrÂ)r`r¯rÃrXrXrYÚtest_extend_enum_shadow_base‘s z+TestExtendEnum.test_extend_enum_shadow_basecCsªGdd„dtƒ}t|dddƒ| |jjd¡| |jjd¡| |j|k¡| |dƒ|j¡| |dƒ|j¡| |d|j¡| t|ƒd¡| t dt|d¡dS) Nc@seZdZdZdZdZdS)z9TestExtendEnum.test_extend_enum_multivalue..Color©rkrurw©rlrvrÛ©rmr2rqNrörXrXrXrYrßsrÃr3rxrrruz'no values specified for MultiValue enumr4) r r!rèr3r¬rérOr³r\rœrÅrXrXrYÚtest_extend_enum_multivaluežsz*TestExtendEnum.test_extend_enum_multivaluecCsŽGdd„dtƒ}| tdt|dd¡| |jjd¡| |jjd¡| |j|k¡| |dƒ|j¡| |dƒ|j¡| |dƒ|j¡| |d|j¡| |j jd ¡| |j jd ¡| |j |k¡| |d ƒ|j ¡| |d ƒ|j ¡| |d ƒ|j ¡| |d |j ¡| |j jd ¡| |j jd¡| |j |k¡| |dƒ|j ¡| |dƒ|j ¡| |dƒ|j ¡| t |ƒd¡dS)Nc@seZdZdZdZdZdS)z?TestExtendEnum.test_extend_enum_multivalue_alias..Colorr:r;r<NrörXrXrXrYrïsrÃz0 is a duplicate of r<rwrÀrkrurÁrlrvrÛrÂrmr2rq) r r\rœr!rèrÀr¬rérOrÁrÂr³rÅrXrXrYÚ!test_extend_enum_multivalue_alias®s.z0TestExtendEnum.test_extend_enum_multivalue_aliascCs Gdd„dttƒ}| |jtk¡t|dddƒ| t|ƒ|j|j|j |j g¡| |dƒ|j k¡| |dƒ|j k¡| |j j dk¡| |j j dk¡dS)Nc@seZdZdZdZdZdS)z9TestExtendEnum.test_extend_enum_multivalue_str..M)Zvalue_1ÚVALUE_1)Zvalue_2ÚVALUE_2)Zvalue_3ÚVALUE_3N)rfrgrhr?r@rArXrXrXrYÚMËsrBÚVALUE_4Zvalue_4) rr rOr/r!rèr´r?r@rArCr¬ré)r`rBrXrXrYÚtest_extend_enum_multivalue_strÊs z.TestExtendEnum.test_extend_enum_multivalue_strcCs‚Gdd„dtƒ}dD]\}}t|||ƒq| t|ƒd¡| t|ƒ|j|j|j|j|j g¡| |jj d¡| |jj d¡dS)Nc@seZdZdZdZdS)z1TestExtendEnum.test_extend_intenum..IndexéiN)rfrgrhÚ DeviceTypeÚ ErrorRegisterrXrXrXrYÚIndexØsrH))Ú ControlWordi@`)Ú StatusWordéA`)Ú OperationModei``rvrErK) rr!rèr³r´rFrGrIrJrLré)r`rHr¬rérXrXrYÚtest_extend_intenum×s $z"TestExtendEnum.test_extend_intenumcCszddlm}t|ƒ}Wn(tk r@Gdd„dtƒ}d}YnXt|dddd ƒt|d d d d ƒ| t|ƒ|d¡| t|ƒdd…|j|j g¡| |jj d¡| |jj d¡| |jj d¡| |jj d ¡| |j j d ¡| |j j d ¡| |j j d ¡| |j j d ¡dS)Nr)Ú HTTPStatusc@s eZdZdd„ZdZdZdZdS)z9TestExtendEnum.test_extend_multi_init..HTTPStatuscSs"t ||¡}||_||_||_|Sr³)rþrrÚphraserö)rrérOrör¨rXrXrYrîs  zATestExtendEnum.test_extend_multi_init..HTTPStatus.__new__r¹r»)r½r¾r”N)rfrgrhrrZr[r\rXrXrXrYrNísrNrmÚBAD_SPAMiz Too greasyz for a trainÚBAD_EGGSiz Too greenr”rléþÿÿÿ)ÚhttprNr³Ú ImportErrorrr!rèr´rPrQrér¬rOrö)r`rNÚlengthrXrXrYÚtest_extend_multi_initès*    þz%TestExtendEnum.test_extend_multi_initcCs¦Gdd„dtƒ}t|dƒ| |dƒ|jk¡| t|j|ƒ¡| |jjd¡t|ddƒ| |dƒ|jk¡| t|j|ƒ¡| |jjd¡| t|tƒ¡dS)Nc@seZdZdZdZdZdZdS)z.TestExtendEnum.test_extend_flag..ColorrrkrlruN©rfrgrhr‹r6r8r7rXrXrXrYrà srÃrrÛrur’) rr!rOrrùrèrérurûrÅrXrXrYÚtest_extend_flag s  zTestExtendEnum.test_extend_flagcCsGdd„dtƒ}t|ddƒ| |dƒ|jk¡| t|j|ƒ¡| |jjd¡| t|tƒ¡t|dƒ| |dƒ|jk¡| t|j|ƒ¡| |jjd¡t|dƒ| |j j d¡| |j jd¡| |j |k¡| |dƒ|j ¡| |d|j ¡| t |ƒd ¡dS) Nc@seZdZdZdZdZdZdS)z8TestExtendEnum.test_extend_flag_backwards..ColorrrkrlruNrWrXrXrXrYrÃsrÃrur’rrÛr4r¶rv) rr!rOrurùrèrérûrr4r¬r³rÅrXrXrYÚtest_extend_flag_backwardss"   z)TestExtendEnum.test_extend_flag_backwardscCsGdd„dtƒ}t|dƒ| |dƒ|jk¡| t|j|ƒ¡| |jjd¡t|ddƒ| |dƒ|jk¡| t|j|ƒ¡| |jjd¡| t|t ƒ¡t|dƒ| |j j d¡| |j jd¡| |j |k¡| |dƒ|j ¡| |d|j ¡| t |ƒd ¡dS) Nc@seZdZdZdZdZdZdS)z1TestExtendEnum.test_extend_intflag..ColorrrkrlruNrWrXrXrXrYrÃ3srÃrrÛrur’r4r¶rv) rr!rOrrùrèrérurûrr4r¬r³rÅrXrXrYÚtest_extend_intflag2s"   z"TestExtendEnum.test_extend_intflagcCsGdd„dtƒ}t|ddƒ| |dƒ|jk¡| t|j|ƒ¡| |jjd¡| t|tƒ¡t|dƒ| |dƒ|j k¡| t|j |ƒ¡| |j jd¡t|dƒ| |j j d¡| |j jd¡| |j |k¡| |dƒ|j ¡| |d|j ¡| t |ƒd ¡dS) Nc@seZdZdZdZdZdZdS)z;TestExtendEnum.test_extend_intflag_backwards..ColorrrkrlruNrWrXrXrXrYrÃKsrÃrur’rrÛr4r¶rv) rr!rOrurùrèrérûrrr4r¬r³rÅrXrXrYÚtest_extend_intflag_backwardsJs"   z,TestExtendEnum.test_extend_intflag_backwardscCsNGdd„dtƒ}t|dƒ| |jjd¡| |jjd¡| t|ƒd¡dS)Nc@seZdZeƒZeƒZeƒZdS)z1TestExtendEnum.test_extend_strenum..ColorN)rfrgrhr"r6r8r7rXrXrXrYrÃdsrÃr‹r"ru)rr!rèr‹r¬rér³rÅrXrXrYÚtest_extend_strenumcs  z"TestExtendEnum.test_extend_strenumN)rfrgrhr5r6r7r8r9r=r>rDrMrVrXrYrZr[r\rXrXrXrYr23s *  !r2c@s4eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd S) Ú TestIssuescCs¼Gdd„dtttƒ}| dd„|Dƒdddg¡| dd„|Dƒd d d g¡| |d ƒ|j¡| |dƒ|j¡| |d ƒ|j¡| |dƒ|j¡| |dƒ|j¡| |dƒ|j¡dS)Nc@s eZdZdZdZdZdZdZdS)z3TestIssues.test_auto_multi_int..MeasurementrƒrÚ20110721Ú20120911Ú20110518N)rfrgrhr¿rHr¢r£rîrXrXrXrYÚ Measurementqs racSsg|] }|j‘qSrXr™ršrXrXrYrwsz2TestIssues.test_auto_multi_int..rrkrlcSsg|] }|j‘qSrXr«ršrXrXrYrxsr¢r£rîr^r_r`)rþr rrèr©r¢r£rî)r`rarXrXrYÚtest_auto_multi_intpszTestIssues.test_auto_multi_intcCsbGdd„dtƒ}| |jj|jj|jjfddif¡| |jj|jj|jjfdd|jdif¡dS)Nc@s4eZdZdZedidZededidZdd„ZdS) z'TestIssues.test_auto_kwds..Itemr(r ©r)Ú requirementsr rkcSsNt |¡}||_||_i}| ¡D] \}}t|tƒr:|j}|||<q"||_|Sr³© rrrr)r‡rùr"Ú enum_memberrd©rrér)rdr¨Únew_requirementsr„r…rXrXrYr†s   z/TestIssues.test_auto_kwds..Item.__new__Nr+rXrXrXrYr,s r,rkr rlr ©rrèrÄrér)rdrÅr-rXrXrYÚtest_auto_kwds€s$zTestIssues.test_auto_kwdscCsbGdd„dtƒ}| |jj|jj|jjfddif¡| |jj|jj|jjfdd|jdif¡dS)Nc@s<eZdZdZdd„ZedidZededidZdd „Zd S) z/TestIssues.test_auto_kwds_and_gnv..Itemr(c_s|Sr³rXrñrXrXrYrò™szETestIssues.test_auto_kwds_and_gnv..Item._generate_next_value_r rcr rkcSsNt |¡}||_||_i}| ¡D] \}}t|tƒr:|j}|||<q"||_|Sr³rergrXrXrYržs   z7TestIssues.test_auto_kwds_and_gnv..Item.__new__N) rfrgrhr¿ròr"rÄrÅrrXrXrXrYr,–s  r,rÄr rÅr rkrir-rXrXrYÚtest_auto_kwds_and_gnv•s$z!TestIssues.test_auto_kwds_and_gnvcCsNGdd„dtƒ}t|ddƒ| |j|jB|dƒ¡| |j|jBjd¡dS)Nc@seZdZdZdZdZdS)z-TestIssues.test_extend_flag..FlagTestrrkrlN)rfrgrhrHÚLOWZMIDrXrXrXrYÚFlagTest®srmÚHIGHrurv)rr!rèrlrnré)r`rmrXrXrYrX­s zTestIssues.test_extend_flagcCs4Gdd„dtƒ}t ¡j}dddœ}t|||ƒdS)Nc@s eZdZdddœZdddœZdS)z3TestIssues.test_extend_unhashable..TestEnumrÚabc©rMrérkÚdefN)rfrgrhÚABCZDEFrXrXrXrYr¶·s þþr¶r¦Únewrp)rÚuuidÚuuid4r¨r!)r`r¶Zrandr=rXrXrYÚtest_extend_unhashable¶s  þz!TestIssues.test_extend_unhashableN)rfrgrhrbrjrkrXrvrXrXrXrYr]ns  r]rvrurwÚgoodbyeÚhello©rqrkréùð?ù@ù@c@s\eZdZdd„Zdd„Zdd„Ze ed¡dd „ƒZ e ed¡d d „ƒZ d d „Z dd„Z dS)Ú TestConvertcCsštƒ}dD]}d|d|<d|d|<q dD]\}}||d|<q,dD]\}}||d|<qFd D]\}}||d |<q`d |d <d |d <d|d<d|d<dS)N)rÄrÅrÆrÇr¿rÈrvzCONVERT_TEST_NAME_%szCONVERT_STRING_TEST_NAME_%s))rÄrv)rÅry)rÆrézUNCOMPARABLE_%s))rÄr{)rÅr|)rÆrzz COMPLEX_%s))rrx)r„rwzCONVERT_STR_TEST_%sruÚCONVERT_TEST_SIGABRTÚCONVERT_TEST_SIGIOTrwÚCONVERT_TEST_EIOÚCONVERT_TEST_EBUS)r¶)r`rzÚsuffixrérXrXrYÚtearDownîs    zTestConvert.tearDowncCsjtjdtdd„d}| |dƒjd¡| |dƒjd¡| |d ƒjd ¡| t|ƒ|j|j|jg¡dS) NÚUnittestConvertcSs | d¡S©NZ CONVERT_TEST_©Ú startswith©rxrXrXrYr±r²z@TestConvert.test_convert_value_lookup_priority..©ÚfilterrvÚCONVERT_TEST_NAME_Arur~rwr) rÚ _convert_ÚMODULErèr¬r´r~r‹r©r`rYrXrXrYÚ"test_convert_value_lookup_prioritysýýþz.TestConvert.test_convert_value_lookup_priorityc sÈtjdtdd„d‰| ˆjˆj¡| ˆjd¡| ˆjd¡| ˆjd¡| ˆj d¡t t ƒdddd d d d d ddg }‡fdd„t ˆƒDƒ}‡fdd„t ˆƒDƒ}|j||gd||fddS)Nr„cSs | d¡Sr…r†rˆrXrXrYr±r²z.TestConvert.test_convert_int..r‰rvr‹ÚCONVERT_TEST_NAME_BÚCONVERT_TEST_NAME_CÚCONVERT_TEST_NAME_DÚCONVERT_TEST_NAME_EÚCONVERT_TEST_NAME_Fr~rr€rcsg|]}|tˆƒkr|‘qSrX©Úenum_dir©r›r¬©rYrXrYr(s z0TestConvert.test_convert_int..csg|]}|tˆƒkr|‘qSrX©Údirr—r˜rXrYr)s ú#extra names: %r; missing names: %r©Úmsg) rrŒrrèr”r‹rr‘r’r“ršrþr–)r`Zint_dirÚextraÚmissingrXr˜rYÚtest_convert_ints>ýÿü ýzTestConvert.test_convert_intz$everything is comparable on Python 2cCs:tjdtdd„d}| t|ƒ|j|j|jgt|ƒ¡dS)NÚ UncomparablecSs | d¡S)NZ UNCOMPARABLE_r†rˆrXrXrYr±5r²z7TestConvert.test_convert_uncomparable..r‰)rrŒrrèr´ÚUNCOMPARABLE_AÚUNCOMPARABLE_BÚUNCOMPARABLE_C©r`ZuncomprXrXrYÚtest_convert_uncomparable0sýýz%TestConvert.test_convert_uncomparablecCs4tjdtdd„d}| t|ƒ|j|j|jg¡dS)Nr¡cSs | d¡S)NZCOMPLEX_r†rˆrXrXrYr±Br²z2TestConvert.test_convert_complex..r‰)rrŒrrèr´Ú COMPLEX_AÚ COMPLEX_BÚ COMPLEX_Cr¥rXrXrYÚtest_convert_complex=sýþz TestConvert.test_convert_complexcs¸tjdtdd„dd‰| ˆjd¡| ˆjd¡‡fdd „tˆƒDƒ}‡fd d „tˆƒDƒ}|j||gd ||fd | tˆjƒd t ¡| t ˆjƒd¡| t ˆjƒd¡dS)Nr„cSs | d¡S)NZ CONVERT_STR_r†rˆrXrXrYr±Mr²z.TestConvert.test_convert_str..T©rŠZ as_globalrxrwcsg|]}|tˆƒkr|‘qSrXr•r—r˜rXrYrSs z0TestConvert.test_convert_str..csg|]}|tˆƒkr|‘qSrXr™r—r˜rXrYrTs r›rœz%s.CONVERT_STR_TEST_1) rrŒrrèÚCONVERT_STR_TEST_1ÚCONVERT_STR_TEST_2ršr–r+Ú SHORT_MODULErrj)r`ržrŸrXr˜rYÚtest_convert_strIs$ü ýzTestConvert.test_convert_strcCsTtjdtdd„dd}| t|jƒdt¡| t|jƒd¡| t|jƒd¡dS)Nr„cSs | d¡S)NZCONVERT_STRING_TEST_r†rˆrXrXrYr±br²z7TestConvert.test_convert_repr_and_str..Tr«z%s.CONVERT_STRING_TEST_NAME_Ar]) rrŒrrèr+ÚCONVERT_STRING_TEST_NAME_Ar®rrjrŽrXrXrYÚtest_convert_repr_and_str^süz%TestConvert.test_convert_repr_and_strN) rfrgrhrƒrr rTrUr.r¦rªr¯r±rXrXrXrYr}ìs   r}c Cs¾t|jddddddddd g ƒ}|jtjk r6| d ¡|jtjk rL| d ¡ttd ƒr`| d ¡d D],}t ||ƒt t|ƒt t |ƒfkrd| |¡qd|j tkr¤t |ƒSt tt |j ƒƒ|BƒSdS)NreÚ __contains__r·r$r’r³rýrgrfrr!rh)r_rnr&r$)r†Ú_member_names_Z _new_member_rrrBr!rrCr]rr/rCrš)rÚ interestingÚmethodrXrXrYr–js.ý        r–cCs¬|jjtkr$tdddddddgƒ}n tt|ƒƒ}|j ¡D]h}|j ¡D]X\}}|dd kr^qHt|t j ƒr–|j dk s~||j krŠ|  |¡q | |¡qH|  |¡qHq:t|ƒS) Nrer·r—rÂrgr¬rérr[)rer/rr†ršrLrãr‡rùr#r®r´r3rBÚdiscardrC)r%Úallowedrr¬r¨rXrXrYÚ member_dirs      r¸Ú__main__TF)Úexitz%s: %s)ÔÚ __future__rrr™rSrRrWÚshutilÚtempfiler)rTrtÚwarningsrrrrrr r r r r rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5Z aenum._enumr6rQr7ràr8Úpickler9r:r;r<Úoperatorr=rŒr>rŽr?rr@rrAr€rBrrCr‚rDr…rEr†rFr„rGr‡rHrˆrIr‰rJrŠrKrƒrLr‹rMrrrTrNÚ NameErrorrfrr)r®rZr[rjr˜ršrþrrrßrsrtr¤r{r~rr€rƒr…rˆr‰rŠrŽrr¦r©r°rªr«r¬r­r®r¯r”Ztest_v37r±rr²r¼rÞrHr˜r¶r]rnrVrur€r‹rórrr2r]r’r‘rr‹r“r”r~rr€rZCONVERT_STRING_TEST_NAME_DZCONVERT_STRING_TEST_NAME_CZCONVERT_STRING_TEST_NAME_Br°ZCONVERT_STRING_TEST_NAME_EZCONVERT_STRING_TEST_NAME_Fr­r¬r¢r¤r£r©r§r¨r}r–r¸ÚmkdtemprYr`Úrmtreerºr³Úresultr”r£ÚmainÚstdoutÚflushZskippedr¬Úreasonr•rXrXrXrYÚs¨($$00         ÿ     l%(x6V8Qa=^~