mitmproxy/test/test_controller.py
2014-01-04 14:42:32 +13:00

13 lines
241 B
Python

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