def test_inputs_not_dict(self):
        lhs = [1, 2, 3]
        rhs = {1: 2}
        merged = util.merge_dict(lhs, rhs)
        expected = {1: 2}
        self.assertEqual(merged, expected)

        lhs = [1, 2, 3]
        rhs = {1: 2}
        merged = util.merge_dict(lhs, rhs, False)
        expected = [1, 2, 3]
        self.assertEqual(merged, expected)

        lhs = {1: 2}
        rhs = [1, 2, 3]
        merged = util.merge_dict(lhs, rhs)
        expected = [1, 2, 3]
        self.assertEqual(merged, expected)

        lhs = {1: 2}
        rhs = [1, 2, 3]
        merged = util.merge_dict(lhs, rhs, False)
        expected = {1: 2}
        self.assertEqual(merged, expected)
test inputs not dict.
dataset/ETHPy150Open openstack/compass-core/compass/tests/utils/test_util.py/TestMergeDict.test_inputs_not_dict