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

Method test_eq

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

Source from the content-addressed store, hash-verified

55class ErrorDetailTests(TestCase):
56
57 def test_eq(self):
58 assert ErrorDetail('msg') == ErrorDetail('msg')
59 assert ErrorDetail('msg', 'code') == ErrorDetail('msg', code='code')
60
61 assert ErrorDetail('msg') == 'msg'
62 assert ErrorDetail('msg', 'code') == 'msg'
63
64 def test_ne(self):
65 assert ErrorDetail('msg1') != ErrorDetail('msg2')

Callers

nothing calls this directly

Calls 1

ErrorDetailClass · 0.90

Tested by

no test coverage detected