def METHOD_NAME(self):
    """
    Make sure format_es_document_for_autocomplete returns a properly
    formatted licence suggestion.
    """
    es_licence = {
        "_id": 217,
        "_source": {
            "title": {
                "en": "my licence title",
                "fr": "titre de ma licence",
            },
        },
    }
    self.assertEqual(
        LicencesIndexer.format_es_document_for_autocomplete(es_licence, "fr"),
        {"id": 217, "kind": "licences", "title": "titre de ma licence"},
    )