

@mock.patch('awscli.customizations.emr.sshutils.emrutils')
def test_cluster_in_terminated_states(self, emrutils):
    self.get_cluster_state.return_value = 'TERMINATED'
    with self.assertRaises(exceptions.ClusterTerminatedError):
        sshutils.validate_and_find_master_dns(mock.Mock(), None, 'cluster-id')

dataset/ETHPy150Open aws/aws-cli/tests/unit/customizations/emr/test_sshutils.py TestSSHUtils.test_cluster_in_terminated_states/VarMisuse@20/44 `emrutils`->`self`