def test_build_multiple_jobs(self):
    self.project.add_job('foo', Job({'a': 2}))
    self.project.add_job('bar', Job({'b': 3}))
    self.project.add_file(__file__, 'this.py')
    with temppath() as path:
      self.project.build(path)
      reader = ZipFile(path)
      try:
        ok_('foo.job' in reader.namelist())
        ok_('bar.job' in reader.namelist())
        ok_('this.py' in reader.namelist())
        eq_(reader.read('foo.job').decode('utf-8'), 'a=2\n')
      finally:
        reader.close()
dataset/ETHPy150Open mtth/azkaban/test/test_project.py/TestProjectBuild.test_build_multiple_jobs/original