def test_sub_unsupported(self):

        prob = Problem()
        prob.root = SellarDerivativesGrouped()

        # We don't support submodel cs yet.
        prob.root.mda.fd_options['force_fd'] = True
        prob.root.mda.fd_options['form'] = 'complex_step'

        with self.assertRaises(RuntimeError) as cm:
            prob.setup(check=False)

        msg = "Complex step is currently not supported for groups"
        msg += " other than root."

        self.assertTrue(msg in str(cm.exception))
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/test/test_complex_step.py/ComplexStepVectorUnitTestsBasicImpl.test_sub_unsupported/original