db053de2ad0bb5db0ce12532654c70321ac3e7f3,tests/python/pants_test/base/test_hash_utils.py,TestHashUtils,test_hash_all,#TestHashUtils#,22

Before Change


  def test_hash_all(self):
    self.digest.update("jake")
    self.digest.update("jones")
    self.digest.hexdigest().AndReturn("42")
    self.mox.ReplayAll()

    self.assertEqual("42", hash_all(["jake", "jones"], digest=self.digest))

After Change


class TestHashUtils(unittest.TestCase):

  def test_hash_all(self):
    expected_hash = hashlib.md5()
    expected_hash.update("jakejones")
    self.assertEqual(expected_hash.hexdigest(), hash_all(["jake", "jones"], digest=hashlib.md5()))

  def test_hash_file(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: db053de2ad0bb5db0ce12532654c70321ac3e7f3
Time: 2016-08-09
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/base/test_hash_utils.py
Class Name: TestHashUtils
Method Name: test_hash_all


Project Name: pantsbuild/pants
Commit Name: db053de2ad0bb5db0ce12532654c70321ac3e7f3
Time: 2016-08-09
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/base/test_hash_utils.py
Class Name: TestHashUtils
Method Name: test_hash_file


Project Name: pantsbuild/pants
Commit Name: b5eb940cf734a1c379f46051a67bd76895f756b6
Time: 2016-08-09
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/net/http/test_fetcher.py
Class Name: FetcherTest
Method Name: test_checksum_listener