def test_start(self, mock_start): url = 'http://broker' handler = ReplyHandler(url) watchdog = Mock() handler.start(watchdog) mock_start.assert_called_with(handler, watchdog=watchdog)