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

Method test_hash

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

Source from the content-addressed store, hash-verified

120 assert error != 0
121
122 def test_hash(self):
123 resp = {
124 "error_type": "BAD_SOMETHING",
125 "field": "some_field",
126 "message": "invalid something",
127 }
128 error = RedditErrorItem(**resp)
129 error2 = RedditErrorItem(**resp)
130 assert hash(error) == hash(error2)
131
132 def test_property(self):
133 error = RedditErrorItem("BAD_SOMETHING", field="some_field", message="invalid something")

Callers

nothing calls this directly

Calls 1

RedditErrorItemClass · 0.90

Tested by

no test coverage detected