6b71da02c28556bd02affd84eea6f45a04764c39,tests/unit_tests.py,ArticleTestCase,test_nlp_body,#ArticleTestCase#,246
Before Change
"great", "weather", "balloons", "snow", "good",
"flight", "york", "roads", "smooth", "thanksgiving"]
with open(os.path.join(TEST_DIR,
"data/text/cnn_summary.txt"), "r") as f:
assert self.article.summary == f.read()
assert sorted(self.article.keywords) == sorted(KEYWORDS)
class SourceTestCase(unittest.TestCase):
After Change
KEYWORDS = ["forecasters", "storm", "winds", "sailing",
"great", "weather", "balloons", "snow", "good",
"flight", "york", "roads", "smooth", "thanksgiving"]
SUMMARY = mock_resource_with("cnn_summary", "txt")
assert self.article.summary == SUMMARY
assert sorted(self.article.keywords) == sorted(KEYWORDS)
In pattern: SUPERPATTERN
Frequency: 4
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: ArticleTestCase
Method Name: test_nlp_body
Project Name: codelucas/newspaper
Commit Name: e28a71a76f797d280ebe280c68259fde0095e18e
Time: 2015-01-02
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: ExhaustiveFullTextCase
Method Name: runTest
Project Name: codelucas/newspaper
Commit Name: ef64dd06cc732b1dfb62a80f377324ecc5a0284d
Time: 2015-01-04
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: ExhaustiveFullTextCase
Method Name: runTest
Project Name: codelucas/newspaper
Commit Name: 6b71da02c28556bd02affd84eea6f45a04764c39
Time: 2015-01-02
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: ArticleTestCase
Method Name: test_parse_html