6b71da02c28556bd02affd84eea6f45a04764c39,tests/unit_tests.py,MultiLanguageTestCase,test_spanish_fulltext_extract,#MultiLanguageTestCase#,489
Before Change
resp = mock_response_with(url, "spanish_article")
article.download(resp)
article.parse()
with codecs.open(os.path.join(TEXT_FN, "spanish.txt"),
"r", "utf8") as f:
assert article.text == f.read()
if __name__ == "__main__":
// unittest.main() // run all units and their cases
suite = unittest.TestSuite()
After Change
html = mock_resource_with("spanish_article", "html")
article.download(html)
article.parse()
text = mock_resource_with("spanish", "txt")
assert article.text == text
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: codelucas/newspaper
Commit Name: 6b71da02c28556bd02affd84eea6f45a04764c39
Time: 2015-01-02
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: MultiLanguageTestCase
Method Name: test_spanish_fulltext_extract
Project Name: codelucas/newspaper
Commit Name: 6b71da02c28556bd02affd84eea6f45a04764c39
Time: 2015-01-02
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: MultiLanguageTestCase
Method Name: test_chinese_fulltext_extract
Project Name: codelucas/newspaper
Commit Name: 6b71da02c28556bd02affd84eea6f45a04764c39
Time: 2015-01-02
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: MultiLanguageTestCase
Method Name: test_arabic_fulltext_extract