def assert_suggestions(self, w, candidates, expected): suggestions = spellcheck.suggest(w, candidates) self.assertEqual(suggestions, expected)
def assert_best_suggestion(self, w, expected): suggestions = spellcheck.suggest(w, self.HOOKS) self.assertEqual(suggestions[0], expected)