Example #1
0
 def compareDM(self, changes):
     ''' given a changes-dict, dictmerge them,
         and compare against shouldbe '''
     self.assertEqual(self.shouldbe, dm(base, changes))
Example #2
0
 def test_merge_same(self):
     self.assertEqual(base, dm(base, base))
Example #3
0
 def test_empty_additions(self):
     self.assertEqual(base, dm(base, {}))
Example #4
0
 def test_empty_base(self):
     self.assertEqual(base, dm({}, base))
Example #5
0
 def test_empty(self):
     self.assertEqual({}, dm({}, {}))