def test_bad_get_unknown(self):
        unknowns_dict = OrderedDict()

        unknowns_dict['y1'] = { 'shape': (3,2), 'size': 6, 'val': np.ones((3, 2)) }

        sd = _SysData('')
        for u, meta in unknowns_dict.items():
            meta['pathname'] = u
            meta['top_promoted_name'] = u
            sd.to_prom_name[u] = u

        u = SrcVecWrapper(sd, pbd)
        u.setup(unknowns_dict, store_byobjs=True)

        try:
            u['A.y1']
        except __HOLE__ as err:
            self.assertEqual(str(err), "'A.y1'")
        else:
            self.fail('KeyError expected')
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/test/test_vec_wrapper.py/TestVecWrapper.test_bad_get_unknown