b5eb940cf734a1c379f46051a67bd76895f756b6,tests/python/pants_test/net/http/test_fetcher.py,FetcherTest,test_checksum_listener,#FetcherTest#,112

Before Change


                       timeout_secs=60)

  def test_checksum_listener(self):
    digest = self.mox.CreateMockAnything()
    for chunk in self.expect_get("http://baz", chunk_size_bytes=1, timeout_secs=37):
      self.listener.recv_chunk(chunk)
      digest.update(chunk)

    self.listener.finished()
    digest.hexdigest().AndReturn("42")

    self.response.close()

After Change


        yield mock.call.update(chunk)
      yield mock.call.hexdigest()

    self.assertEqual(list(expected_digest_calls()), digest.method_calls)

    self.assert_listener_calls(expected_listener_calls, chunks)
    self.response.close.assert_called_once_with()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


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


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


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_get


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: assert_local_file_fetch