1 from cola
import compat
2 from cola
import spellcheck
7 def test_spellcheck_generator():
8 check
= spellcheck
.NorvigSpellCheck()
9 assert_spellcheck(check
)
12 def test_spellcheck_unicode():
13 path
= helper
.fixture('unicode.txt')
14 check
= spellcheck
.NorvigSpellCheck(words
=path
)
15 assert_spellcheck(check
)
18 def assert_spellcheck(check
):
19 for word
in check
.read():
20 assert word
is not None
21 assert isinstance(word
, compat
.ustr
)