@contextmanager
  def _handle_bundles(self, names):
    paths = [self._bundle_path(name) for name in names]
    jars = ['{name}.jar'.format(name=name) for name in names]
    yield (paths, jars)
    missing = []
    for path in paths:
      if os.path.exists(path):
        rmtree(path)
      else:
        missing.append(path)
    self.assertFalse(missing, "Some bundles weren't generated! {missing}"
        .format(missing=', '.join(missing)))
Parse optional relation clause of relative data address
dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/base/test_bundle_integration.py/BundleIntegrationTest._handle_bundles--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/base/building.py/Builder.parseRelation