MCPcopy
hub / github.com/django/django / test_unhashable

Method test_unhashable

tests/utils_tests/test_hashable.py:31–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 self.assertCountEqual(make_hashable(value), expected)
30
31 def test_unhashable(self):
32 class Unhashable:
33 __hash__ = None
34
35 with self.assertRaisesMessage(TypeError, "unhashable type: 'Unhashable'"):
36 make_hashable(Unhashable())

Callers

nothing calls this directly

Calls 3

make_hashableFunction · 0.90
UnhashableClass · 0.85
assertRaisesMessageMethod · 0.80

Tested by

no test coverage detected