MCPcopy
hub / github.com/encode/django-rest-framework / test_hash

Method test_hash

tests/test_exceptions.py:81–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 assert str(ErrorDetail('msg1', 'code')) == 'msg1'
80
81 def test_hash(self):
82 assert hash(ErrorDetail('msg')) == hash('msg')
83 assert hash(ErrorDetail('msg', 'code')) == hash('msg')
84
85
86class TranslationTests(TestCase):

Callers

nothing calls this directly

Calls 1

ErrorDetailClass · 0.90

Tested by

no test coverage detected