diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2013-03-03 09:33:22 +1300 | 
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2013-03-03 09:33:22 +1300 | 
| commit | bbdb59b9f94e4c0fa887e4ddb4cf3df3413f27fe (patch) | |
| tree | ef70e01659937abe30a35fca74e3e9d9d042a686 /test | |
| parent | c20d1d7d32ea2ab1d1c4dd9a34724a8732c23338 (diff) | |
| download | mitmproxy-bbdb59b9f94e4c0fa887e4ddb4cf3df3413f27fe.tar.gz mitmproxy-bbdb59b9f94e4c0fa887e4ddb4cf3df3413f27fe.tar.bz2 mitmproxy-bbdb59b9f94e4c0fa887e4ddb4cf3df3413f27fe.zip  | |
Test controller message default reply.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_controller.py | 12 | 
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 + +  | 
