aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_controller.py
diff options
context:
space:
mode:
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
+
+