def test_illegal_src(self):
        logging.debug('')
        logging.debug('test_illegal_src')

        # Set illegal path (during execution of sink), verify error message.
        self.model.sink.bogus_path = '/illegal'
        msg = "middle.passthrough (1-middle.1-passthrough): Illegal path '/illegal'," \
              " not a descendant of"
        try:
            self.model.run()
        except __HOLE__ as exc:
            print exc
            self.assertTrue(msg in str(exc))
        else:
            self.fail('ValueError expected')
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_filevar.py/TestCase.test_illegal_src