From bbdb59b9f94e4c0fa887e4ddb4cf3df3413f27fe Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 3 Mar 2013 09:33:22 +1300 Subject: [PATCH] Test controller message default reply. --- test/test_controller.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/test_controller.py diff --git a/test/test_controller.py b/test/test_controller.py new file mode 100644 index 000000000..f6d6b5eb3 --- /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 + +