(self, pastebin, mocked_urlopen_fail)
| 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") |
nothing calls this directly
no outgoing calls
no test coverage detected