aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_controller.py
diff options
context:
space:
mode:
authorRouli <rouli.net@gmail.com>2013-03-18 14:24:13 +0200
committerRouli <rouli.net@gmail.com>2013-03-18 14:24:13 +0200
commitc94aadcb0ee5e7aab8acc46a0e4ac7d02a28df6f (patch)
tree1e62785d669d86f6e551a99b9debfe445389bd48 /test/test_controller.py
parentb6cae7cd2d0105d6a6fe9d35864d0f9b7c5f8924 (diff)
parent5c33f6784b4ba34dd9825ea7e3070cdf0b2b4621 (diff)
downloadmitmproxy-c94aadcb0ee5e7aab8acc46a0e4ac7d02a28df6f.tar.gz
mitmproxy-c94aadcb0ee5e7aab8acc46a0e4ac7d02a28df6f.tar.bz2
mitmproxy-c94aadcb0ee5e7aab8acc46a0e4ac7d02a28df6f.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'test/test_controller.py')
-rw-r--r--test/test_controller.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_controller.py b/test/test_controller.py
new file mode 100644
index 00000000..f6d6b5eb
--- /dev/null
+++ b/test/test_controller.py
@@ -0,0 +1,12 @@
+import mock
+from libmproxy import controller
+
+
+class TestMaster:
+ def test_default_handler(self):
+ m = controller.Master(None)
+ msg = mock.MagicMock()
+ m.handle(msg)
+ assert msg.reply.call_count == 1
+
+