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

Method test_repr

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

Source from the content-addressed store, hash-verified

69 assert ErrorDetail('msg1', 'code') != 'msg2'
70
71 def test_repr(self):
72 assert repr(ErrorDetail('msg1')) == \
73 'ErrorDetail(string={!r}, code=None)'.format('msg1')
74 assert repr(ErrorDetail('msg1', 'code')) == \
75 'ErrorDetail(string={!r}, code={!r})'.format('msg1', 'code')
76
77 def test_str(self):
78 assert str(ErrorDetail('msg1')) == 'msg1'

Callers

nothing calls this directly

Calls 1

ErrorDetailClass · 0.90

Tested by

no test coverage detected