(self)
| 149 | ) |
| 150 | |
| 151 | def test_download_error_short(self): |
| 152 | # In practice, the complete traceback is shown by passing the |
| 153 | # 'exc_info' argument to the logging function |
| 154 | failure = Failure(Exception()) |
| 155 | request = Request("http://www.example.com") |
| 156 | logkws = self.formatter.download_error(failure, request, self.spider) |
| 157 | logline = logkws["msg"] % logkws["args"] |
| 158 | assert logline == "Error downloading <GET http://www.example.com>" |
| 159 | |
| 160 | def test_download_error_long(self): |
| 161 | # In practice, the complete traceback is shown by passing the |
nothing calls this directly
no test coverage detected