diff options
author | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-05-17 11:06:40 +0530 |
---|---|---|
committer | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-05-17 11:06:40 +0530 |
commit | 37053f0efc439ab4406c57f74a7bcc8daa5ea156 (patch) | |
tree | 5c37394fa5acfe369a9f34fdac9629c6b448bda0 /test | |
parent | 204d06f93f7c3fbdce38b12219c530e1eddc3e4d (diff) | |
download | mitmproxy-37053f0efc439ab4406c57f74a7bcc8daa5ea156.tar.gz mitmproxy-37053f0efc439ab4406c57f74a7bcc8daa5ea156.tar.bz2 mitmproxy-37053f0efc439ab4406c57f74a7bcc8daa5ea156.zip |
Increased mitmproxy.controller coverage
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_controller.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/mitmproxy/test_controller.py b/test/mitmproxy/test_controller.py index ccc8bf35..2e13d298 100644 --- a/test/mitmproxy/test_controller.py +++ b/test/mitmproxy/test_controller.py @@ -176,6 +176,8 @@ class TestDummyReply: reply = controller.DummyReply() reply.ack() reply.take() + with pytest.raises(ControlException): + reply.mark_reset() reply.commit() reply.mark_reset() assert reply.state == "committed" |