blob: f6d6b5eb3c457af74c9a2390c8fb3ac44bedb987 (
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(msg)
assert msg.reply.call_count == 1
|