def test_no_training_data(self):
        surrogate = KrigingSurrogate()

        try:
            surrogate.predict([0., 1.])
        except __HOLE__ as err:
            self.assertEqual(str(err),
                             "KrigingSurrogate has not been trained, "
                             "so no prediction can be made.")
        else:
            self.fail("RuntimeError Expected")
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/surrogate_models/test/test_kriging.py/TestKrigingSurrogate.test_no_training_data