d3f35589dde513df73a7873067e70297f872b577,tests/unit_tests.py,ExhaustiveFullTextCase,runTest,#ExhaustiveFullTextCase#,78
Before Change
correct_text = mock_resource_with(res_filename, "txt")
// print("%s -- status: %s" % (url, a.text == correct_text))
assert a.text == correct_text
class ArticleTestCase(unittest.TestCase):
def runTest(self):
After Change
traceback.print_exc()
continue
with open(os.path.join(TEXT_FN, res_filename + ".txt"), "w") as f:
f.write(a.text)
// correct_text = mock_resource_with(res_filename, "txt")
// print("%s -- status: %s" % (url, a.text == correct_text))
// assert a.text == correct_text
class ArticleTestCase(unittest.TestCase):
def runTest(self):
self.test_url()
self.test_download_html()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: codelucas/newspaper
Commit Name: d3f35589dde513df73a7873067e70297f872b577
Time: 2015-01-04
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: ExhaustiveFullTextCase
Method Name: runTest
Project Name: RasaHQ/rasa
Commit Name: 06999395c7898abd4bc9ac3bae57d3516f7bca92
Time: 2019-03-14
Author: ric.wkr@gmail.com
File Name: tests/test_server.py
Class Name:
Method Name: test_stack_training
Project Name: pantsbuild/pants
Commit Name: 783feee3639953f11654cdd9284d6b8b0d6b5a26
Time: 2016-07-23
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/binaries/test_binary_util.py
Class Name: BinaryUtilTest
Method Name: test_support_url_multi