(tmpdir)
| 18 | |
| 19 | |
| 20 | def test_load_file(tmpdir): |
| 21 | s = serverplayback.ServerPlayback() |
| 22 | with taddons.context(s): |
| 23 | fpath = str(tmpdir.join("flows")) |
| 24 | tdump(fpath, [tflow.tflow(resp=True)]) |
| 25 | s.load_file(fpath) |
| 26 | assert s.flowmap |
| 27 | with pytest.raises(exceptions.CommandError): |
| 28 | s.load_file("/nonexistent") |
| 29 | |
| 30 | |
| 31 | def test_config(tmpdir): |