コード例 #1
0
    def test_merge_dicts(self):
        d1 = {1: 2, 3: 4, 5: 6, 7: 8}
        d2 = {3: 5, 7: 9, 11: 13}

        DictUtils.assert_dicts_equal(DictUtils.merge_dicts(d1, d2), {
            1: 2,
            3: 5,
            5: 6,
            7: 9,
            11: 13
        })