MCPcopy Create free account
hub / github.com/praw-dev/praw / test_repr

Method test_repr

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

Source from the content-addressed store, hash-verified

134 assert error.error_message == "BAD_SOMETHING: 'invalid something' on field 'some_field'"
135
136 def test_repr(self):
137 error = RedditErrorItem("BAD_SOMETHING", field="some_field", message="invalid something")
138 assert (
139 repr(error)
140 == "RedditErrorItem(error_type='BAD_SOMETHING', message='invalid something', field='some_field')"
141 )
142
143 def test_str(self):
144 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