mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-12-12 15:46:08 +00:00
Test controller message default reply.
This commit is contained in:
parent
c20d1d7d32
commit
bbdb59b9f9
12
test/test_controller.py
Normal file
12
test/test_controller.py
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user