Lines Matching refs:issubclass
288 self.assertTrue(issubclass(C, abc))
293 self.assertTrue(issubclass(C, abc))
298 self.assertFalse(issubclass(C, abc))
302 self.assertFalse(issubclass(C, abc))
342 self.assertFalse(issubclass(type(x), Hashable), repr(type(x)))
352 self.assertTrue(issubclass(type(x), Hashable), repr(type(x)))
360 self.assertFalse(issubclass(int, H))
369 self.assertFalse(issubclass(type(x), Iterable), repr(type(x)))
379 self.assertTrue(issubclass(type(x), Iterable), repr(type(x)))
385 self.assertFalse(issubclass(str, I))
394 self.assertFalse(issubclass(type(x), Iterator), repr(type(x)))
405 self.assertTrue(issubclass(type(x), Iterator), repr(type(x)))
427 self.assertFalse(issubclass(type(x), Sized), repr(type(x)))
434 self.assertTrue(issubclass(type(x), Sized), repr(type(x)))
445 self.assertFalse(issubclass(type(x), Container), repr(type(x)))
452 self.assertTrue(issubclass(type(x), Container), repr(type(x)))
464 self.assertFalse(issubclass(type(x), Callable), repr(type(x)))
472 self.assertTrue(issubclass(type(x), Callable), repr(type(x)))
480 self.assertTrue(issubclass(C, B))
481 self.assertFalse(issubclass(int, C))
488 self.assertFalse(issubclass(C, B), B.__name__)
490 self.assertTrue(issubclass(C, B))
521 self.assertTrue(issubclass(sample, Set))
549 self.assertTrue(issubclass(set, MutableSet))
551 self.assertFalse(issubclass(frozenset, MutableSet))
806 self.assertTrue(issubclass(sample, Mapping))
821 self.assertTrue(issubclass(sample, MutableMapping))
828 self.assertTrue(issubclass(sample, Sequence))
829 self.assertTrue(issubclass(basestring, Sequence))
831 self.assertTrue(issubclass(xrange, Sequence))
832 self.assertTrue(issubclass(str, Sequence))
839 self.assertFalse(issubclass(sample, MutableSequence))
842 self.assertTrue(issubclass(sample, MutableSequence))
843 self.assertFalse(issubclass(basestring, MutableSequence))
855 self.assertTrue(issubclass(Counter, dict))
856 self.assertTrue(issubclass(Counter, Mapping))