spellcheck: docstring typofix
[git-cola.git] / test / spellcheck_test.py
blobcbee2096a7052e253b284f5df717fe368ab27742
1 from cola import compat
2 from cola import spellcheck
4 from . import helper
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)