(self)
| 263 | self.view.remove([f]) |
| 264 | |
| 265 | def test_flow_revert(self): |
| 266 | f = self.view.get_by_id("42") |
| 267 | f.backup() |
| 268 | f.request.method = "PATCH" |
| 269 | self.fetch("/flows/42/revert", method="POST") |
| 270 | assert not f._backup |
| 271 | |
| 272 | def test_flow_replay(self): |
| 273 | with mock.patch("mitmproxy.command.CommandManager.call") as replay_call: |