

def test_its_not_very_quiet(self):
    stdout = StringIO()
    self.maybe_terminate_quietly(stdout=stdout, max_hours_idle=0.01)
    self.assertEqual(set(stdout.getvalue().splitlines()), set(self.EXPECTED_STDOUT_LINES))
    self.assertEqual(self.ids_of_terminated_clusters(), ['j-DEBUG_ONLY', 'j-DONE_AND_IDLE', 'j-DONE_AND_IDLE_4_X', 'j-HADOOP_DEBUGGING', 'j-IDLE_AND_EXPIRED', 'j-IDLE_AND_FAILED', 'j-PENDING_BUT_IDLE', 'j-POOLED'])

dataset/ETHPy150Open Yelp/mrjob/tests/tools/emr/test_terminate_idle_clusters.py ClusterTerminationTestCase.test_its_not_very_quiet/original