

def test_properties_if_defined(self):
    path.project.add_job('foo', Job({
        'a': 2,
    }))
    self.project.properties = {
        'bar': 123,
    }
    with temppath() as path:
        self.project.build(path)
        reader = ZipFile(path)
        try:
            eq_(sorted(reader.namelist()), ['foo.job', 'project.properties'])
            eq_(reader.read('project.properties').decode('utf-8'), 'bar=123\n')
        finally:
            reader.close()

dataset/ETHPy150Open mtth/azkaban/test/test_project.py TestProjectProperties.test_properties_if_defined/VarMisuse@10/15 `self`->`path`