

def test_build_single_job(self):
    job = Job({
        'a': 2,
    })
    self.project.add_job('bar', job)
    with temppath() as path:
        self.project.build(path)
        reader = ZipFile(path)
        try:
            ok_(('bar.job' in reader.namelist()))
            eq_(reader.read('bar.job').decode('utf-8'), 'a=2\n')
        finally:
            reader.close()

dataset/ETHPy150Open mtth/azkaban/test/test_project.py TestProjectBuild.test_build_single_job/original