@mock.patch('fbpush.push.logger.info')
    @mock.patch.object(push.JunoscriptRpc, 'updateStatus')
    def test_startedConnecting(self, mock_updateStatus, mock_logger):
        self.mock_JunoscriptRpc.startedConnecting('connector1')
        msg = "Connecting to %s. (Already %d active workers)"
        mock_logger.assert_called_with(msg, self.device.name, 0)
        mock_updateStatus.assert_called_with('c', 'CONNECTING', False)
Check the method startedConnecting.
dataset/ETHPy150Open facebook/fbpush/tests/test_push.py/FBPushJunoscriptRpcTestCase.test_startedConnecting