def test_parser_can_retrieve_info_after_some_words(self): """ Tests whether the parser is able to retrieve relevant data (localisation) that follow a certain piece of words.""" parser = Parser( "Bonjour Grandpy, peux-tu me dire l'adresse de la tour Eiffel?", STOPWORDS, ACCENTS, QUESTIONS) result = parser.get_end_of_question() assert result == "la tour Eiffel"