aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/__init__.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-02-07 02:36:39 +0100
committerMaximilian Hils <git@maximilianhils.com>2014-02-07 02:36:39 +0100
commit9f5f2b707165d14cbf0ace9a55ec2d1dc44d9802 (patch)
treefaaabe2a4ec11607076217bacca1b9d8ae866b23 /libmproxy/protocol/__init__.py
parent66090f9aea01094a42c53c762ae5852b7ee91e86 (diff)
downloadmitmproxy-9f5f2b707165d14cbf0ace9a55ec2d1dc44d9802.tar.gz
mitmproxy-9f5f2b707165d14cbf0ace9a55ec2d1dc44d9802.tar.bz2
mitmproxy-9f5f2b707165d14cbf0ace9a55ec2d1dc44d9802.zip
test libmproxy.app, increase coverage
Diffstat (limited to 'libmproxy/protocol/__init__.py')
-rw-r--r--libmproxy/protocol/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmproxy/protocol/__init__.py b/libmproxy/protocol/__init__.py
index 123c31e0..4c72ad48 100644
--- a/libmproxy/protocol/__init__.py
+++ b/libmproxy/protocol/__init__.py
@@ -15,14 +15,14 @@ class ProtocolHandler(object):
self.c = c
"""@type: libmproxy.proxy.ConnectionHandler"""
- def handle_messages(self):
+ def handle_messages(self): # pragma: nocover
"""
This method gets called if a client connection has been made. Depending on the proxy settings,
a server connection might already exist as well.
"""
raise NotImplementedError
- def handle_error(self, error):
+ def handle_error(self, error): # pragma: nocover
"""
This method gets called should there be an uncaught exception during the connection.
This might happen outside of handle_messages, e.g. if the initial SSL handshake fails in transparent mode.
@@ -90,7 +90,7 @@ def _handler(conntype, connection_handler):
if conntype in protocols:
return protocols[conntype]["handler"](connection_handler)
- raise NotImplementedError
+ raise NotImplementedError # pragma: nocover
def handle_messages(conntype, connection_handler):