Lines Matching refs:Child
180 class Child(Super): class
194 self.assertEqual(False, isinstance(Super(), Child))
198 self.assertEqual(True, isinstance(Child(), Super))
199 self.assertEqual(False, isinstance(Child(), AbstractSuper))
206 self.assertEqual(False, isinstance(AbstractSuper(), Child))
211 self.assertEqual(False, isinstance(AbstractChild(), Child))
236 self.assertEqual(False, issubclass(Super, Child))
238 self.assertEqual(True, issubclass(Child, Child))
239 self.assertEqual(True, issubclass(Child, Super))
240 self.assertEqual(False, issubclass(Child, AbstractSuper))
248 self.assertEqual(False, issubclass(AbstractSuper, Child))
253 self.assertEqual(False, issubclass(AbstractChild, Child))
257 self.assertEqual(True, issubclass(Child, (Child,)))
258 self.assertEqual(True, issubclass(Child, (Super,)))
259 self.assertEqual(False, issubclass(Super, (Child,)))
260 self.assertEqual(True, issubclass(Super, (Child, Super)))
261 self.assertEqual(False, issubclass(Child, ()))
262 self.assertEqual(True, issubclass(Super, (Child, (Super,))))
265 self.assertEqual(True, issubclass(str, (str, (Child, str))))
281 self.assertTrue(issubclass(str, str | Child | str))
285 issubclass(2, Child | Super)
287 issubclass(int, list[int] | Child)