(self)
| 719 | assert f.get_state() == f2.get_state() |
| 720 | |
| 721 | def test_kill(self): |
| 722 | f = tflow() |
| 723 | f.intercept() |
| 724 | f.resume() |
| 725 | assert f.killable |
| 726 | f.kill() |
| 727 | assert not f.killable |
| 728 | |
| 729 | f = tflow() |
| 730 | f.intercept() |
| 731 | assert f.killable |
| 732 | f.kill() |
| 733 | assert not f.killable |
| 734 | assert f.error.msg == flow.Error.KILLED_MESSAGE |
| 735 | |
| 736 | def test_intercept(self): |
| 737 | f = tflow() |