def METHOD_NAME(
    self,
    mock_mediapackage_channels,
    mock_medialive_indexed_channels,
    mock_harvest_jobs,
):
    """Command should do nothing when pending and failed harvest job exists."""
    out = StringIO()
    mock_mediapackage_channels.return_value = [{"Id": "MP1"}]
    mock_medialive_indexed_channels.return_value = {}
    mock_harvest_jobs.return_value = [
        {"Status": "PENDING"},
        {"Status": "FAILED"},
    ]
    call_command("clean_mediapackages", stdout=out)
    self.assertIn("Processing mediapackage channel MP1", out.getvalue())
    self.assertNotIn("Mediapackage channel MP1 deleted", out.getvalue())
    out.close()