(self)
| 1097 | enum_type = StrEnum |
| 1098 | # |
| 1099 | def test_shadowed_attr(self): |
| 1100 | class Book(StrEnum): |
| 1101 | author = 'author' |
| 1102 | title = 'title' |
| 1103 | # |
| 1104 | self.assertEqual(Book.author.title(), 'Author') |
| 1105 | self.assertEqual(Book.title.title(), 'Title') |
| 1106 | self.assertIs(Book.title.author, Book.author) |
| 1107 | |
| 1108 | |
| 1109 | class TestStrEnumFunction(_EnumTests, _MinimalOutputTests, unittest.TestCase): |
nothing calls this directly
no test coverage detected