aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/test/test_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/test/test_controller.py')
-rw-r--r--mitmproxy/test/test_controller.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/mitmproxy/test/test_controller.py b/mitmproxy/test/test_controller.py
new file mode 100644
index 00000000..ffc7d433
--- /dev/null
+++ b/mitmproxy/test/test_controller.py
@@ -0,0 +1,11 @@
+import mock
+from libmproxy import controller
+
+
+class TestMaster:
+
+ def test_default_handler(self):
+ m = controller.Master(None)
+ msg = mock.MagicMock()
+ m.handle("type", msg)
+ assert msg.reply.call_count == 1