aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_controller.py
blob: d287f18d4fbeef2249c19b07a062a26cb83f2be1 (plain)
1
2
3
4
5
6
7
8
9
10
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