def test_differ(self): a = {'a': 12} b = {'b': 42} m = merge_dict(a, b) eq_({'a': 12, 'b': 42}, m)
def test_recursive(self): a = {'a': {'aa': 12, 'a':{'aaa': 100}}} b = {'a': {'aa': 11, 'ab': 13, 'a':{'aaa': 101, 'aab': 101}}} m = merge_dict(a, b) eq_({'a': {'aa': 12, 'ab': 13, 'a':{'aaa': 100, 'aab': 101}}}, m)
def test_empty_conf(self): a = {} b = {'a': 1, 'b': [12, 13]} m = merge_dict(a, b) eq_(b, m)
def test_empty_base(self): a = {'a': 1, 'b': [12, 13]} b = {} m = merge_dict(a, b) eq_(a, m)
def test_differ(self): a = {'a': 12} b = {'b': 42} m = merge_dict(a, b) assert {'a': 12 , 'b': 42} == m
def test_empty_conf(self): a = {} b = {'a': 1, 'b': [12, 13]} m = merge_dict(a, b) assert b == m
def test_empty_base(self): a = {'a': 1, 'b': [12, 13]} b = {} m = merge_dict(a, b) assert a == m