docstr: Test for simple additions using the levensthein function
  We ensure we end up on the right node in the trie when starting from the current node
docstr_tok: ["Test","for","simple","additions","using","the","levensthein","function","We","ensure","we","end","up","on","the","right","node","in","the","trie","when","starting","from","the","current","node"]
code: def test_correct_keyword_on_addition(self):
      """
      Test for simple additions using the levensthein function
      We ensure we end up on the right node in the trie when starting from the current node
      """
      keyword_proc = KeywordProcessor()
      for keyword in (
          ("colour here", "couleur ici"),
          ("and heere", "et ici"),
      ):
          keyword_proc.add_keyword(*keyword)
  
      current_dict = keyword_proc.keyword_trie_dict["c"]["o"]["l"]["o"]
      closest_node, cost, depth = next(
          keyword_proc.levensthein(
              "r", max_cost=1, start_node=current_dict
          ),
          ({}, 0, 0),
      )
      self.assertDictEqual(closest_node, current_dict["u"]["r"])
      self.assertEqual(cost, 1)
      self.assertEqual(depth, 2)
  
      current_dict_continued = {
          "e": {"e": {"r": {"e": {"_keyword_": "et ici"}}}}
      }
      closest_node, cost, depth = next(
          keyword_proc.levensthein(
              "ere", max_cost=1, start_node=current_dict_continued
          ),
          ({}, 0, 0),
      )
      self.assertDictEqual(
          closest_node, current_dict_continued["e"]["e"]["r"]["e"]
      )
      self.assertEqual(cost, 1)
      self.assertEqual(depth, 4)
  
file_path: flashtext/test/test_extract_fuzzy.py
imports: from flashtext import KeywordProcessor
  import logging
  import unittest
label_desc: Use image node_id 5 for calling the TestExtractFuzzy obj's underlying member method code with example usage: obj.test_correct_keyword_on_addition() without return types