class_docstr: Unit tests for the BestMatch logic adapter.
class_docstr_tok: ["Unit","tests","for","the","BestMatch","logic","adapter","."]
docstr: Test that the logic adapter cannot return a response containing
  any of the listed words for exclusion.
docstr_tok: ["Test","that","the","logic","adapter","can","not","return","a","response","containing","any","of","the","listed","words","for","exclusion","."]
code: def test_excluded_words(self):
      """
      Test that the logic adapter cannot return a response containing
      any of the listed words for exclusion.
      """
      self.chatbot.storage.create(text="I like to count.")
      self.chatbot.storage.create(
          text="Counting is dumb.", in_response_to="I like to count."
      )
      self.chatbot.storage.create(
          text="Counting is fun!", in_response_to="I like to count."
      )
  
      self.adapter.excluded_words = ["dumb"]
  
      response = self.adapter.process(
          Statement(text="I like to count.")
      )
  
      self.assertEqual(response.confidence, 1)
      self.assertEqual(response.text, "Counting is fun!")
  
file_path: ChatterBot/tests/logic/test_best_match.py
imports: from chatterbot.logic import BestMatch
  from chatterbot.conversation import Statement
  from tests.base_case import ChatBotTestCase
label_desc: Use image node_id 7 for calling the BestMatchTestCase obj's underlying member method code with example usage: obj.test_excluded_words() without return types