Home | History | Annotate | Download | only in test

Lines Matching full:hashable

12 from collections import Hashable, Iterable, Iterator
293 self.assertNotIsInstance(x, Hashable)
294 self.assertFalse(issubclass(type(x), Hashable), repr(type(x)))
303 self.assertIsInstance(x, Hashable)
304 self.assertTrue(issubclass(type(x), Hashable), repr(type(x)))
305 self.assertRaises(TypeError, Hashable)
307 class H(Hashable):
310 __eq__ = Hashable.__eq__ # Silence Py3k warning
313 self.validate_abstract_methods(Hashable, '__hash__')
314 self.validate_isinstance(Hashable, '__hash__')
429 for B in Hashable, Iterable, Iterator, Sized, Container, Callable:
436 for B in Hashable, Iterable, Iterator, Sized, Container, Callable:
439 __hash__ = None # Make sure it isn't hashable by default