mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
12 lines
240 B
Python
12 lines
240 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
|