'Test that when \'params\' exists as a key passed to the default_args dict
in addition to params being passed explicitly as an argument to the
dag, that the \'params\' key of the default_args dict is merged with the
dict of the params argument.'

def test_params_passed_and_params_in_default_args_no_override(self):

    params1 = {u'parameter1': 1}
    params2 = {u'parameter2': 2}
    dag = models.DAG(u'test-dag', default_args={u'params': params1}, params=params2)
    params_combined = params1.copy()
    params_combined.update(params2)
    self.assertEqual(params_combined, dag.params)
