

def test_dry_run(self):
    stdout = StringIO()
    self.maybe_terminate_quietly(stdout=stdout, max_hours_idle=0.01, dry_run=True)
    expected_stdout_lines = (self.EXPECTED_STDOUT_LINES + ['Terminated cluster j-IDLE_AND_LOCKED (IDLE_AND_LOCKED); was idle for 2:00:00, 1:00:00 to end of hour'])
    self.assertEqual(set(stdout.getvalue().splitlines()), set(self))
    self.assertEqual(self.ids_of_terminated_clusters(), [])

dataset/ETHPy150Open Yelp/mrjob/tests/tools/emr/test_terminate_idle_clusters.py ClusterTerminationTestCase.test_dry_run/VarMisuse@64/136 `expected_stdout_lines`->`self`