aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUjjwal Verma <ujjwalverma1111@gmail.com>2017-05-17 11:06:40 +0530
committerUjjwal Verma <ujjwalverma1111@gmail.com>2017-05-17 11:06:40 +0530
commit37053f0efc439ab4406c57f74a7bcc8daa5ea156 (patch)
tree5c37394fa5acfe369a9f34fdac9629c6b448bda0
parent204d06f93f7c3fbdce38b12219c530e1eddc3e4d (diff)
downloadmitmproxy-37053f0efc439ab4406c57f74a7bcc8daa5ea156.tar.gz
mitmproxy-37053f0efc439ab4406c57f74a7bcc8daa5ea156.tar.bz2
mitmproxy-37053f0efc439ab4406c57f74a7bcc8daa5ea156.zip
Increased mitmproxy.controller coverage
-rw-r--r--test/mitmproxy/test_controller.py2
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"