(self)
| 2693 | self.assertIn(required_item, dir_items) |
| 2694 | |
| 2695 | def test_cannot_init(self): |
| 2696 | with self.assertRaises(TypeError): |
| 2697 | Literal() |
| 2698 | with self.assertRaises(TypeError): |
| 2699 | Literal[1]() |
| 2700 | with self.assertRaises(TypeError): |
| 2701 | type(Literal)() |
| 2702 | with self.assertRaises(TypeError): |
| 2703 | type(Literal[1])() |
| 2704 | |
| 2705 | def test_no_isinstance_or_issubclass(self): |
| 2706 | with self.assertRaises(TypeError): |
nothing calls this directly
no test coverage detected