5b230fd0dd634fc0c930b9dfd711880cc52ecf64,tests/python/pants_test/test_binary_util.py,BinaryUtilTest,test_nobases,#BinaryUtilTest#,99

Before Change


  def test_nobases(self):
    Tests exception handling if build support urls are improperly specified.
    try:
      util = BinaryUtil(config=self.config_urls())
      with util.select_binary_stream("bin/foo", "4.4.3", "foo") as stream:
        self.fail("We should have gotten a "NoBaseUrlsError".")
    except BinaryUtil.NoBaseUrlsError as e:
      pass // expected

After Change


  def test_nobases(self):
    Tests exception handling if build support urls are improperly specified.
    try:
      with BinaryUtil("bin/protobuf", "2.4.1", [], 30, "/tmp").select_binary_stream("protoc") as stream:
        self.fail("We should have gotten a "NoBaseUrlsError".")
    except BinaryUtil.NoBaseUrlsError as e:
      pass // expected
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pantsbuild/pants
Commit Name: 5b230fd0dd634fc0c930b9dfd711880cc52ecf64
Time: 2015-03-24
Author: zundel@squareup.com
File Name: tests/python/pants_test/test_binary_util.py
Class Name: BinaryUtilTest
Method Name: test_nobases


Project Name: pantsbuild/pants
Commit Name: ee3498b91f28ceaef9b1ee75e40d9409663c0db8
Time: 2015-07-22
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/test_binary_util.py
Class Name: BinaryUtilTest
Method Name: test_support_url_fallback


Project Name: pantsbuild/pants
Commit Name: 5b230fd0dd634fc0c930b9dfd711880cc52ecf64
Time: 2015-03-24
Author: zundel@squareup.com
File Name: tests/python/pants_test/test_binary_util.py
Class Name: BinaryUtilTest
Method Name: test_support_url_multi