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

Method test_ne

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

Source from the content-addressed store, hash-verified

62 assert ErrorDetail('msg', 'code') == 'msg'
63
64 def test_ne(self):
65 assert ErrorDetail('msg1') != ErrorDetail('msg2')
66 assert ErrorDetail('msg') != ErrorDetail('msg', code='invalid')
67
68 assert ErrorDetail('msg1') != 'msg2'
69 assert ErrorDetail('msg1', 'code') != 'msg2'
70
71 def test_repr(self):
72 assert repr(ErrorDetail('msg1')) == \

Callers

nothing calls this directly

Calls 1

ErrorDetailClass · 0.90

Tested by

no test coverage detected