Lines Matching defs:repr

197 # for global repr tests
319 self.assertEqual(repr(TE), "<flag 'MainEnum'>")
324 self.assertEqual(repr(TE), "<enum 'MainEnum'>")
603 self.assertEqual(repr(TE(0)), "<MainEnum: 0>")
604 self.assertEqual(repr(TE.dupe), "<MainEnum.dupe: 3>")
605 self.assertEqual(repr(self.dupe2), "<MainEnum.first|third: 5>")
607 self.assertEqual(repr(TE.dupe), "<MainEnum.third: 'third'>")
609 self.assertEqual(repr(TE.dupe), "<MainEnum.third: %r>" % (self.values[2], ), TE._value_repr_)
611 self.assertEqual(repr(member), "<MainEnum.%s: %r>" % (member.name, member.value))
621 repr(Generic.third),
633 self.assertEqual(repr(MySubEnum.that), "My name is that.")
640 self.assertEqual(repr(E.A), "<E.A: 1>")
1016 self.assertEqual(repr(E.a), '<E.a: typing.List[int]>')
1017 self.assertEqual(repr(E.b), '<E.b: list[int]>')
1154 self.assertEqual(repr(MyEnum.A), '<MyEnum.A: 0x1>')
1318 def repr(self):
1598 # repr() is updated to include the name and type info
1605 # str() is unchanged, even if it relies on the repr() fallback
1630 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1658 # repr() is updated to include the name and type info
1665 # str() is unchanged, even if it relies on the repr() fallback
1690 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1718 # repr() is updated to include the name and type info
1725 # str() is unchanged, even if it relies on the repr() fallback
1750 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1778 # repr() is updated to include the name and type info
1785 # str() is unchanged, even if it relies on the repr() fallback
1809 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1835 # repr() is updated to include the name and type info
1842 # str() is unchanged, even if it relies on the repr() fallback
1865 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1890 # repr() is updated to include the name and type info
1897 # str() is unchanged, even if it relies on the repr() fallback
1923 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
2406 self.assertEqual(repr(Foo.TEST), "0x1")
2481 self.assertEqual(repr(GoodStrEnum.one), "<GoodStrEnum.one: '1'>")
2543 self.assertEqual(repr(OkayEnum.one), "<OkayEnum.one: '1'>")
2662 "ensure dataclass-mixin has correct repr()"
2673 self.assertEqual(repr(Entries.ENTRY1), '<Entries.ENTRY1: Foo(a=1)>')
2684 self.assertEqual(repr(Entries.ENTRY1), 'Foo(a=1)')
2696 self.assertEqual(repr(Entries.ENTRY1), 'Foo')
2743 self.assertEqual(repr(NTEnum.NONE), "<NTEnum.NONE: TTuple(id=0, a=0, blist=[])>")
3433 repr(HeadlightsK(0)),
3437 repr(HeadlightsK(2**0 + 2**2 + 2**3)),
3441 repr(HeadlightsK(2**3)),
3447 repr(HeadlightsC(0)),
3451 repr(HeadlightsC(2**0 + 2**2 + 2**3)),
3455 repr(HeadlightsC(2**3)),
3605 self.assertEqual(repr(simple), '<Simple.SINGLE|<Iron.TWO: 2>: 3>')
4709 self.assertEqual(repr(test_type.CONVERT_STR_TEST_1), '%s.CONVERT_STR_TEST_1' % SHORT_MODULE)
4726 self.assertEqual(repr(test_type.CONVERT_STRING_TEST_NAME_A), '%s.CONVERT_STRING_TEST_NAME_A' % SHORT_MODULE)