mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-12 07:08:55 +00:00
13 lines
233 B
Python
13 lines
233 B
Python
|
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
|
||
|
|
||
|
|