Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
Issue a command to all running control daemons.

:param conf_file: Name of the configuration file.
:param command: The command to execute.  Note that 'ping' is
                handled specially; in particular, the "channel"
                parameter is implied.  (A random value will be
                used for the channel to listen on.)
:param arguments: A list of arguments for the command.  Note that
                  the colon character (':') cannot be used.
:param channel: If not None, specifies the name of a message(more...)

src/t/u/turnstile-HEAD/tests/unit/test_tools.py   turnstile(Download)
        pubsub = db.pubsub.return_value
 
        tools.turnstile_command('conf_file', 'CoMmAnD')
 
        mock_Config.assert_called_once_with(conf_file='conf_file')
        pubsub = db.pubsub.return_value
 
        tools.turnstile_command('conf_file', 'CoMmAnD', ['arg1', 'arg2'])
 
        mock_Config.assert_called_once_with(conf_file='conf_file')
        pubsub = db.pubsub.return_value
 
        tools.turnstile_command('conf_file', 'CoMmAnD')
 
        mock_Config.assert_called_once_with(conf_file='conf_file')
        pubsub = db.pubsub.return_value
 
        tools.turnstile_command('conf_file', 'CoMmAnD', channel='response')
 
        mock_Config.assert_called_once_with(conf_file='conf_file')
        pubsub = db.pubsub.return_value
 
        tools.turnstile_command('conf_file', 'CoMmAnD', ['arg1', 'arg2'],
                                channel='response', debug=True)