def METHOD_NAME(
    self, mock_mediapackage_channels, mock_medialive_indexed_channels
):
    """Command should do nothing when there is related medialives."""
    out = StringIO()
    mock_mediapackage_channels.return_value = [{"Id": "MP1"}, {"Id": "MP2"}]
    mock_medialive_indexed_channels.return_value = {
        "MP1": {"Id": "ML1", "Name": "MP1"},
        "MP2": {"Id": "ML2", "Name": "MP2"},
    }
    call_command("clean_mediapackages", stdout=out)
    self.assertIn("Processing mediapackage channel MP1", out.getvalue())
    self.assertIn("Processing mediapackage channel MP2", out.getvalue())
    self.assertNotIn("Mediapackage channel MP1 deleted", out.getvalue())
    self.assertNotIn("Mediapackage channel MP2 deleted", out.getvalue())
    out.close()