(self, tmpdir)
| 194 | assert "Could not read" in caplog.text |
| 195 | |
| 196 | def test_is_killed(self, tmpdir): |
| 197 | ml = MapLocal() |
| 198 | with taddons.context(ml) as tctx: |
| 199 | tmpfile = tmpdir.join("foo.jpg") |
| 200 | tmpfile.write("foo") |
| 201 | tctx.configure(ml, map_local=["|//example.org/images|" + str(tmpfile)]) |
| 202 | f = tflow.tflow() |
| 203 | f.request.url = b"https://example.org/images/foo.jpg" |
| 204 | f.kill() |
| 205 | ml.request(f) |
| 206 | assert not f.response |