

def assert_locked_by_something_else(self, mock_cluster, steps_ahead=1):
    contents = self._lock_contents(mock_cluster, steps_ahead=steps_ahead)
    self.assertIsNotNone(contents)
    self.assertNotIn(b'terminate', contents)

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