Example #1
0
 def test_can_load_from_file(self):
     word_source = WordSource()
     dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
     words_file_path = os.path.join(dir, "words.txt")
     word_source.load_from_file(words_file_path)
     assert len(word_source.words) == 20