mitmproxy/test/test_controller.py

12 lines
240 B
Python
Raw Normal View History

2013-03-02 20:33:22 +00:00
import mock
from libmproxy import controller
class TestMaster:
2016-01-27 09:12:18 +00:00
2013-03-02 20:33:22 +00:00
def test_default_handler(self):
m = controller.Master(None)
msg = mock.MagicMock()
m.handle("type", msg)
2013-03-02 20:33:22 +00:00
assert msg.reply.call_count == 1