

def test_username_invalid_private_key(self):
    paramiko_runner = ParamikoRemoteScriptRunner('runner_1')
    self.runner_parameters = {
        'username': 'test_user',
        'hosts': '127.0.0.1',
        'private_key': 'invalid private key',
    }
    paramiko_runner.context = {
        
    }
    self.assertRaises(NoHostsConnectedToException, paramiko_runner.pre_run)

dataset/ETHPy150Open StackStorm/st2/st2actions/tests/unit/test_paramiko_remote_script_runner.py ParamikoScriptRunnerTestCase.test_username_invalid_private_key/VarMisuse@17/34 `paramiko_runner`->`self`