Lines Matching refs:Reversible
23 from collections.abc import Hashable, Iterable, Iterator, Generator, Reversible
815 self.assertNotIsInstance(x, Reversible)
816 self.assertFalse(issubclass(type(x), Reversible), repr(type(x)))
823 self.assertNotIsInstance(x, Reversible)
824 self.assertFalse(issubclass(type(x), Reversible), repr(type(x)))
830 self.assertIsInstance(x, Reversible)
831 self.assertTrue(issubclass(type(x), Reversible), repr(type(x)))
833 self.assertTrue(issubclass(Sequence, Reversible), repr(Sequence))
834 self.assertFalse(issubclass(Mapping, Reversible), repr(Mapping))
835 self.assertFalse(issubclass(MutableMapping, Reversible), repr(MutableMapping))
837 class R(Reversible):
844 self.validate_abstract_methods(Reversible, '__reversed__', '__iter__')
850 self.assertFalse(issubclass(RevNoIter, Reversible))
851 self.assertFalse(isinstance(RevNoIter(), Reversible))
852 self.assertTrue(issubclass(RevPlusIter, Reversible))
853 self.assertTrue(isinstance(RevPlusIter(), Reversible))
862 self.assertTrue(issubclass(Rev, Reversible))
863 self.assertTrue(isinstance(Rev(), Reversible))
864 self.assertFalse(issubclass(RevItBlocked, Reversible))
865 self.assertFalse(isinstance(RevItBlocked(), Reversible))
866 self.assertFalse(issubclass(RevRevBlocked, Reversible))
867 self.assertFalse(isinstance(RevRevBlocked(), Reversible))
1191 for B in Hashable, Iterable, Iterator, Reversible, Sized, Container, Callable:
1198 for B in Hashable, Iterable, Iterator, Reversible, Sized, Container, Callable: