

@patch('st2actions.runners.ssh.parallel_ssh.ParallelSSHClient', Mock)
@patch.object(ParallelSSHClient, 'run', MagicMock(return_value={
    
}))
@patch.object(ParallelSSHClient, 'connect', MagicMock(return_value={
    
}))
def test_username_only_ssh(self):
    paramiko_runner = ParamikoRemoteScriptRunner('runner_1')
    self.runner_parameters = {
        'username': 'test_user',
        'hosts': '127.0.0.1',
    }
    self.assertRaises(InvalidCredentialsException, paramiko_runner.pre_run)

dataset/ETHPy150Open StackStorm/st2/st2actions/tests/unit/test_paramiko_remote_script_runner.py ParamikoScriptRunnerTestCase.test_username_only_ssh/VarMisuse@65/110 `paramiko_runner`->`self`