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