U e" @sHddlmZddlmZddlmZGdddeZedkrDedd S) )Enum) dataclass)TestCasec@seZdZddZdS) TestEnumV37csTddlm}m|ddGddd}Gddd|t}|t|jd ||jj|d |t |j|||j |k|j |Gfd d d }Gd dd|t}|t|j dGddd}|ddGfdd d |}Gddd|t}|t|j d|ddGfdd d }Gddd|t}| t|j ddS)z)ensure dataclass-mixin has correct repr()r)rfieldF)reprc@s"eZdZUdZeed<ddZdS)z1TestEnumV37.test_repr_with_dataclass..FooFooacSsdS)Nzha hah!selfr r .Foo.__repr__N)__name__ __module__ __qualname__int__annotations__rr r r rr s r c@seZdZdZdS)z5TestEnumV37.test_repr_with_dataclass..EntriesrN)rrrENTRY1r r r rEntriessrzrcs6eZdZUdZeed<eed<dddZeed<dS z?TestEnumV37.test_repr_with_dataclass..CreatureDataMixinCreatureDataMixinsizeZlegsFT)rdefaulttailNrrrstrrrrboolr rr rrs rc@seZdZdZdZdZdSz6TestEnumV37.test_repr_with_dataclass..CreatureCreature)Zsmall)ZmediumNrrrZBEETLEDOGr r r rr!#sr!z%c@seZdZddZdS)z1TestEnumV37.test_repr_with_dataclass..HuhcSsdS)NZ inheritedr r r r rr,sz:TestEnumV37.test_repr_with_dataclass..Huh.__repr__N)rrrrr r r rHuh+sr&cs6eZdZUdZeed<eed<dddZeed<dSrrr rr rr.s c@seZdZdZdZdZdSr r$r r r rr!4szcs6eZdZUdZeed<eed<dddZeed<dSrrr rr rr<s c@seZdZdZdZdZdSr r$r r r rr!Bsz0N) dataclassesrrr assertEqualrrvalue assertTrue isinstance _member_type_r% assertRegex)r rr rrr!r&r rrtest_repr_with_dataclasss*z$TestEnumV37.test_repr_with_dataclassN)rrrr.r r r rrsr__main__zD'test_v3.py' should not be run by itself; it's included in 'test.py'N) rr'rZunittestrrr RuntimeErrorr r r rs   C