(url, data)
| 176 | import urllib.request |
| 177 | |
| 178 | def response(url, data): |
| 179 | stream = io.BytesIO(b"something bad occurred") |
| 180 | return stream |
| 181 | |
| 182 | monkeypatch.setattr(urllib.request, "urlopen", response) |
| 183 | result = pastebin.create_new_paste(b"full-paste-contents") |
nothing calls this directly
no outgoing calls
no test coverage detected