Test controller message default reply.

This commit is contained in:
Aldo Cortesi 2013-03-03 09:33:22 +13:00
parent c20d1d7d32
commit bbdb59b9f9

12
test/test_controller.py Normal file
View 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