

def test_merge_project_on_add_kwargs(self):

    class OtherJob(Job):
        test = None

        def on_add(self, project, name, **kwargs):
            self.test = kwargs
    job = OtherJob()
    project2 = Project('qux')
    project2.add_job('bar', job)
    project2.merge_into(self.project)
    eq_(job.test, {
        'merging': project2,
    })

dataset/ETHPy150Open mtth/azkaban/test/test_project.py TestProjectMerge.test_merge_project_on_add_kwargs/original