(self)
| 680 | flowfilter.match("~", f) |
| 681 | |
| 682 | def test_backup(self): |
| 683 | f = tflow() |
| 684 | f.response = tresp() |
| 685 | f.request.content = b"foo" |
| 686 | assert not f.modified() |
| 687 | f.backup() |
| 688 | f.request.content = b"bar" |
| 689 | assert f.modified() |
| 690 | f.revert() |
| 691 | assert f.request.content == b"foo" |
| 692 | |
| 693 | def test_backup_idempotence(self): |
| 694 | f = tflow(resp=True) |