Lines Matching refs:Hashable
16 from collections import Hashable, Iterable, Iterator
341 self.assertNotIsInstance(x, Hashable)
342 self.assertFalse(issubclass(type(x), Hashable), repr(type(x)))
351 self.assertIsInstance(x, Hashable)
352 self.assertTrue(issubclass(type(x), Hashable), repr(type(x)))
353 self.assertRaises(TypeError, Hashable)
355 class H(Hashable):
358 __eq__ = Hashable.__eq__ # Silence Py3k warning
361 self.validate_abstract_methods(Hashable, '__hash__')
362 self.validate_isinstance(Hashable, '__hash__')
477 for B in Hashable, Iterable, Iterator, Sized, Container, Callable:
484 for B in Hashable, Iterable, Iterator, Sized, Container, Callable: