• Home
  • Raw
  • Download

Lines Matching refs:issubclass

111         self.assertRaises(RuntimeError, issubclass, C(), S())
121 self.assertRaises(TypeError, issubclass, C(), S())
135 self.assertRaises(RuntimeError, issubclass, B, C())
145 self.assertRaises(TypeError, issubclass, B, C())
213 self.assertEqual(True, issubclass(Super, Super))
214 self.assertEqual(False, issubclass(Super, AbstractSuper))
215 self.assertEqual(False, issubclass(Super, Child))
217 self.assertEqual(True, issubclass(Child, Child))
218 self.assertEqual(True, issubclass(Child, Super))
219 self.assertEqual(False, issubclass(Child, AbstractSuper))
223 self.assertEqual(True, issubclass(AbstractSuper, AbstractSuper))
224 self.assertEqual(False, issubclass(AbstractSuper, AbstractChild))
225 self.assertEqual(False, issubclass(AbstractSuper, Child))
227 self.assertEqual(True, issubclass(AbstractChild, AbstractChild))
228 self.assertEqual(True, issubclass(AbstractChild, AbstractSuper))
229 self.assertEqual(False, issubclass(AbstractChild, Super))
230 self.assertEqual(False, issubclass(AbstractChild, Child))
234 self.assertEqual(True, issubclass(Child, (Child,)))
235 self.assertEqual(True, issubclass(Child, (Super,)))
236 self.assertEqual(False, issubclass(Super, (Child,)))
237 self.assertEqual(True, issubclass(Super, (Child, Super)))
238 self.assertEqual(False, issubclass(Child, ()))
239 self.assertEqual(True, issubclass(Super, (Child, (Super,))))
241 self.assertEqual(True, issubclass(int, (int, (float, int))))
242 self.assertEqual(True, issubclass(str, (str, (Child, str))))
247 self.assertRaises(RecursionError, blowstack, issubclass, str, str)