blob: e71a148eb70464b2dc1662eb4aefba6395c322f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|