mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +00:00
11 lines
239 B
Python
11 lines
239 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
|