MCPcopy Index your code
hub / github.com/praw-dev/praw / test_equality

Method test_equality

tests/unit/test_exceptions.py:111–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109
110class TestRedditErrorItem:
111 def test_equality(self):
112 resp = {
113 "error_type": "BAD_SOMETHING",
114 "field": "some_field",
115 "message": "invalid something",
116 }
117 error = RedditErrorItem(**resp)
118 error2 = RedditErrorItem(**resp)
119 assert error == error2
120 assert error != 0
121
122 def test_hash(self):
123 resp = {

Callers

nothing calls this directly

Calls 1

RedditErrorItemClass · 0.90

Tested by

no test coverage detected