def test_obj_list_to_dict(self):
        class obj0(object):
            value = 0

        class obj1(object):
            value = 1

        list = [obj0, obj1]
        new_list = meta.obj_list_to_dict(list)
        self.assertEqual(new_list[0]['value'], 0)
        self.assertEqual(new_list[1]['value'], 1)
Test conversion of a list of objects to a list of dictonaries
dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_meta.py/TestMeta.test_obj_list_to_dict