def test_custom_stop_words_file_not_found(): with pytest.raises(IOError): read_stop_words(expand_resource_path("stopwords/klingon.txt"))
def test_ok_custom_stopwords_file(self): stop_words = read_stop_words(expand_resource_path("stopwords/language.txt")) self.assertEqual(len(stop_words), 4)
def test_ok_custom_stopwords_file(): stop_words = read_stop_words( expand_resource_path("stopwords/language.txt")) assert len(stop_words) == 4