

def test_inputs_wrt_nfidelity(self):
    mm = MultiFiMetaModel(nfi=3)
    mm.add_param('x', 0.0)
    mm.add_output('y', 0.0)
    prob = Problem(Group())
    prob.root.add('mm', mm)
    prob.setup(check=False)
    self.assertEqual(prob['mm.train:x'], [])
    self.assertEqual(prob['mm.train:x_fi2'], [])
    self.assertEqual(prob['mm.train:x_fi3'], [])
    self.assertEqual(prob['mm.train:y'], [])
    self.assertEqual(prob['mm.train:y_fi2'], [])
    prob.assertEqual(prob['mm.train:y_fi3'], [])

dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/components/test/test_multifi_meta_model.py MultiFiMetaModelTestCase.test_inputs_wrt_nfidelity/VarMisuse@131/194 `self`->`prob`