(tmpdir)
| 29 | |
| 30 | |
| 31 | def test_config(tmpdir): |
| 32 | s = serverplayback.ServerPlayback() |
| 33 | with taddons.context(s) as tctx: |
| 34 | fpath = str(tmpdir.join("flows")) |
| 35 | tdump(fpath, [tflow.tflow(resp=True)]) |
| 36 | tctx.configure(s, server_replay=[fpath]) |
| 37 | s.configured = False |
| 38 | with pytest.raises(exceptions.OptionsError): |
| 39 | tctx.configure(s, server_replay=[str(tmpdir)]) |
| 40 | |
| 41 | |
| 42 | def test_server_playback(): |