Lines Matching refs:Child
166 class Child(Super): class
189 self.assertEqual(False, isinstance(Super(), Child))
193 self.assertEqual(True, isinstance(Child(), Super))
194 self.assertEqual(False, isinstance(Child(), AbstractSuper))
201 self.assertEqual(False, isinstance(AbstractSuper(), Child))
206 self.assertEqual(False, isinstance(AbstractChild(), Child))
212 self.assertEqual(False, issubclass(Super, Child))
214 self.assertEqual(True, issubclass(Child, Child))
215 self.assertEqual(True, issubclass(Child, Super))
216 self.assertEqual(False, issubclass(Child, AbstractSuper))
222 self.assertEqual(False, issubclass(AbstractSuper, Child))
227 self.assertEqual(False, issubclass(AbstractChild, Child))
231 self.assertEqual(True, issubclass(Child, (Child,)))
232 self.assertEqual(True, issubclass(Child, (Super,)))
233 self.assertEqual(False, issubclass(Super, (Child,)))
234 self.assertEqual(True, issubclass(Super, (Child, Super)))
235 self.assertEqual(False, issubclass(Child, ()))
236 self.assertEqual(True, issubclass(Super, (Child, (Super,))))
247 self.assertEqual(True, issubclass(str, (unicode, (Child, NewChild, basestring))))