def test_check_word_without_verification(self): c = SpellChecker(enabled=True) self.assertTrue(c.check_word_without_verification("HELLO")) c._enabled_all = False self.assertFalse(c.check_word_without_verification("HELLO")) c._man = SpellDict("man", enable_add=True) c.add_word("TTT") self.assertTrue(c.check_word("TTT"))
def test_check_word(self): c = SpellChecker(enabled=True) self.assertTrue(c.check_word("HELLO")) self.assertFalse(c.check_word("ERR_ERR")) self.assertTrue(c.check_word("2.045E-25"))