def compareDM(self, changes): ''' given a changes-dict, dictmerge them, and compare against shouldbe ''' self.assertEqual(self.shouldbe, dm(base, changes))
def test_merge_same(self): self.assertEqual(base, dm(base, base))
def test_empty_additions(self): self.assertEqual(base, dm(base, {}))
def test_empty_base(self): self.assertEqual(base, dm({}, base))
def test_empty(self): self.assertEqual({}, dm({}, {}))