def test_confirm_multiple_words(self, get_input): """ Test if the word the user hsa chosen via console is returned correctly. @patch emulates user input as "1". Therefore the first word in a list of words is the default word to be chosen. :param get_input: method as obj, Dictionary.get_input """ dictionary = Dictionary() dictionary.load_dictionary("data.json") words = ["dog", "cat"] word = dictionary.confirm_multiple_words(words) self.assertEqual(word, "dog")