(self)
| 4575 | get_protocol_members(ConcreteInherit()) |
| 4576 | |
| 4577 | def test_is_protocol(self): |
| 4578 | self.assertTrue(is_protocol(Proto)) |
| 4579 | self.assertTrue(is_protocol(Point)) |
| 4580 | self.assertFalse(is_protocol(Concrete)) |
| 4581 | self.assertFalse(is_protocol(Concrete())) |
| 4582 | self.assertFalse(is_protocol(Generic)) |
| 4583 | self.assertFalse(is_protocol(object)) |
| 4584 | |
| 4585 | # Protocol is not itself a protocol |
| 4586 | self.assertFalse(is_protocol(Protocol)) |
| 4587 | |
| 4588 | def test_interaction_with_isinstance_checks_on_superclasses_with_ABCMeta(self): |
| 4589 | # Ensure the cache is empty, or this test won't work correctly |
nothing calls this directly
no test coverage detected