

def test_merge_project(self):
    job_bar = Job()
    self.project.add_job('bar', job_bar)
    self.project.add_file(FILEPATHS[0], 'bar')
    project2 = Project('qux')
    job_baz = Job()
    job_baz.add_job('baz', job_baz)
    project2.add_file(FILEPATHS[1], 'baz')
    project2.merge_into(self.project)
    eq_(self.project.name, 'foo')
    eq_(self.project._jobs, {
        'bar': job_bar,
        'baz': job_baz,
    })
    eq_(self.project._files, {
        'bar': (FILEPATHS[0], True),
        'baz': (FILEPATHS[1], True),
    })

dataset/ETHPy150Open mtth/azkaban/test/test_project.py TestProjectMerge.test_merge_project/VarMisuse@54/74 `project2`->`job_baz`