Home
last modified time | relevance | path

Searched refs:AbstractChild (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_isinstance.py172 AbstractChild = AbstractClass(bases=(AbstractSuper,)) variable
194 self.assertEqual(False, isinstance(Super(), AbstractChild))
202 self.assertEqual(False, isinstance(AbstractSuper(), AbstractChild))
206 self.assertEqual(True, isinstance(AbstractChild(), AbstractChild))
207 self.assertEqual(True, isinstance(AbstractChild(), AbstractSuper))
208 self.assertEqual(False, isinstance(AbstractChild(), Super))
209 self.assertEqual(False, isinstance(AbstractChild(), Child))
224 self.assertEqual(False, issubclass(AbstractSuper, AbstractChild))
227 self.assertEqual(True, issubclass(AbstractChild, AbstractChild))
228 self.assertEqual(True, issubclass(AbstractChild, AbstractSuper))
[all …]
Dtest_inspect.py273 class AbstractChild(AbstractClassExample): class
275 class AbstractGrandchild(AbstractChild):
/external/python/cpython2/Lib/test/
Dtest_isinstance.py160 AbstractChild = AbstractClass(bases=(AbstractSuper,)) variable
191 self.assertEqual(False, isinstance(Super(), AbstractChild))
199 self.assertEqual(False, isinstance(AbstractSuper(), AbstractChild))
203 self.assertEqual(True, isinstance(AbstractChild(), AbstractChild))
204 self.assertEqual(True, isinstance(AbstractChild(), AbstractSuper))
205 self.assertEqual(False, isinstance(AbstractChild(), Super))
206 self.assertEqual(False, isinstance(AbstractChild(), Child))
221 self.assertEqual(False, issubclass(AbstractSuper, AbstractChild))
224 self.assertEqual(True, issubclass(AbstractChild, AbstractChild))
225 self.assertEqual(True, issubclass(AbstractChild, AbstractSuper))
[all …]