Example #1
0
 def test_merge_matching_keys_same_value(self):
     self.assertEqual(dict_merge(dict(a=1, b=2), dict(b=2, c=1)),
                      dict(a=1, b=2, c=1))
Example #2
0
 def test_merge_matching_keys_same_value(self):
     self.assertEqual(
         dict_merge(dict(a=1, b=2), dict(b=2, c=1)),
         dict(a=1, b=2, c=1))
Example #3
0
 def test_merge_no_match(self):
     self.assertEqual(dict_merge(dict(a=1), dict(b=2)), dict(a=1, b=2))
Example #4
0
 def test_merge_no_match(self):
     self.assertEqual(
         dict_merge(dict(a=1), dict(b=2)),
         dict(a=1, b=2))