Lines Matching refs:issubclass
99 self.assertRaises(RuntimeError, issubclass, C(), S())
109 self.assertRaises(TypeError, issubclass, C(), S())
123 self.assertRaises(RuntimeError, issubclass, B, C())
133 self.assertRaises(TypeError, issubclass, B, C())
210 self.assertEqual(True, issubclass(Super, Super))
211 self.assertEqual(False, issubclass(Super, AbstractSuper))
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))
220 self.assertEqual(True, issubclass(AbstractSuper, AbstractSuper))
221 self.assertEqual(False, issubclass(AbstractSuper, AbstractChild))
222 self.assertEqual(False, issubclass(AbstractSuper, Child))
224 self.assertEqual(True, issubclass(AbstractChild, AbstractChild))
225 self.assertEqual(True, issubclass(AbstractChild, AbstractSuper))
226 self.assertEqual(False, issubclass(AbstractChild, Super))
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,))))
238 self.assertEqual(True, issubclass(NewChild, (NewChild,)))
239 self.assertEqual(True, issubclass(NewChild, (NewSuper,)))
240 self.assertEqual(False, issubclass(NewSuper, (NewChild,)))
241 self.assertEqual(True, issubclass(NewSuper, (NewChild, NewSuper)))
242 self.assertEqual(False, issubclass(NewChild, ()))
243 self.assertEqual(True, issubclass(NewSuper, (NewChild, (NewSuper,))))
245 self.assertEqual(True, issubclass(int, (long, (float, int))))
247 self.assertEqual(True, issubclass(str, (unicode, (Child, NewChild, basestring))))
252 self.assertRaises(RuntimeError, blowstack, issubclass, str, str)