MCPcopy Index your code
hub / github.com/encode/django-rest-framework / test_str

Method test_str

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

Source from the content-addressed store, hash-verified

75 'ErrorDetail(string={!r}, code={!r})'.format('msg1', 'code')
76
77 def test_str(self):
78 assert str(ErrorDetail('msg1')) == 'msg1'
79 assert str(ErrorDetail('msg1', 'code')) == 'msg1'
80
81 def test_hash(self):
82 assert hash(ErrorDetail('msg')) == hash('msg')

Callers

nothing calls this directly

Calls 1

ErrorDetailClass · 0.90

Tested by

no test coverage detected