Searched refs:AbstractSuper (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_isinstance.py | 170 AbstractSuper = AbstractClass(bases=()) variable 172 AbstractChild = AbstractClass(bases=(AbstractSuper,)) 193 self.assertEqual(False, isinstance(Super(), AbstractSuper)) 197 self.assertEqual(False, isinstance(Child(), AbstractSuper)) 201 self.assertEqual(True, isinstance(AbstractSuper(), AbstractSuper)) 202 self.assertEqual(False, isinstance(AbstractSuper(), AbstractChild)) 203 self.assertEqual(False, isinstance(AbstractSuper(), Super)) 204 self.assertEqual(False, isinstance(AbstractSuper(), Child)) 207 self.assertEqual(True, isinstance(AbstractChild(), AbstractSuper)) 214 self.assertEqual(False, issubclass(Super, AbstractSuper)) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_isinstance.py | 158 AbstractSuper = AbstractClass(bases=()) variable 160 AbstractChild = AbstractClass(bases=(AbstractSuper,)) 190 self.assertEqual(False, isinstance(Super(), AbstractSuper)) 194 self.assertEqual(False, isinstance(Child(), AbstractSuper)) 198 self.assertEqual(True, isinstance(AbstractSuper(), AbstractSuper)) 199 self.assertEqual(False, isinstance(AbstractSuper(), AbstractChild)) 200 self.assertEqual(False, isinstance(AbstractSuper(), Super)) 201 self.assertEqual(False, isinstance(AbstractSuper(), Child)) 204 self.assertEqual(True, isinstance(AbstractChild(), AbstractSuper)) 211 self.assertEqual(False, issubclass(Super, AbstractSuper)) [all …]
|