()
| 59 | |
| 60 | |
| 61 | def test_add_flows(): |
| 62 | sp = serverplayback.ServerPlayback() |
| 63 | with taddons.context(sp) as tctx: |
| 64 | tctx.configure(sp) |
| 65 | f1 = tflow.tflow(resp=True) |
| 66 | f2 = tflow.tflow(resp=True) |
| 67 | |
| 68 | sp.load_flows([f1]) |
| 69 | sp.add_flows([f2]) |
| 70 | |
| 71 | assert sp.next_flow(f1) |
| 72 | assert sp.flowmap |
| 73 | assert sp.next_flow(f2) |
| 74 | assert not sp.flowmap |
| 75 | |
| 76 | sp.add_flows([f1]) |
| 77 | assert sp.flowmap |
| 78 | assert sp.next_flow(f1) |
| 79 | assert not sp.flowmap |
| 80 | |
| 81 | |
| 82 | def test_ignore_host(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…