(self)
| 142 | ] |
| 143 | |
| 144 | def test_empty(self): |
| 145 | def generator(): |
| 146 | yield from () |
| 147 | |
| 148 | for choices in ({}, [], (), set(), frozenset(), generator()): |
| 149 | with self.subTest(choices=choices): |
| 150 | self.assertEqual(normalize_choices(choices), []) |
| 151 | |
| 152 | def test_choices(self): |
| 153 | class Medal(TextChoices): |
nothing calls this directly
no test coverage detected