(self, abc, name)
| 740 | self.assertRaises(TypeError, C) |
| 741 | |
| 742 | def validate_isinstance(self, abc, name): |
| 743 | stub = lambda s, *args: 0 |
| 744 | |
| 745 | C = type('C', (object,), {'__hash__': None}) |
| 746 | setattr(C, name, stub) |
| 747 | self.assertIsInstance(C(), abc) |
| 748 | self.assertIsSubclass(C, abc) |
| 749 | |
| 750 | C = type('C', (object,), {'__hash__': None}) |
| 751 | self.assertNotIsInstance(C(), abc) |
| 752 | self.assertNotIsSubclass(C, abc) |
| 753 | |
| 754 | def validate_comparison(self, instance): |
| 755 | ops = ['lt', 'gt', 'le', 'ge', 'ne', 'or', 'and', 'xor', 'sub'] |
no test coverage detected