MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_pastebin_http_error

Method test_pastebin_http_error

testing/test_pastebin.py:157–160  ·  view source on GitHub ↗
(self, pastebin, mocked_urlopen_fail)

Source from the content-addressed store, hash-verified

155 assert len(mocked_urlopen_invalid) == 1
156
157 def test_pastebin_http_error(self, pastebin, mocked_urlopen_fail) -> None:
158 result = pastebin.create_new_paste(b"full-paste-contents")
159 assert result == "bad response: HTTP Error 400: Bad request"
160 assert len(mocked_urlopen_fail) == 1
161
162 def test_create_new_paste(self, pastebin, mocked_urlopen) -> None:
163 result = pastebin.create_new_paste(b"full-paste-contents")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected