

def test_missing_key_set(self):
    comp = MyComponent()
    comp.set('arr[1]', 2.0)
    self.assertEqual(2.0, comp.arr[1])

dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/datatypes/test/test_dict.py DictTestCase.test_missing_key_set/original