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

        try:
            # Set an illegal execution directory, verify error.
            comp = Component()
            comp.directory = '/illegal'
            comp.cpath_updated()
        except __HOLE__, exc:
            msg = ": Illegal path '/illegal', not a descendant of"
            self.assertEqual(str(exc)[:len(msg)], msg)
        else:
            self.fail('Expected ValueError')
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_component.py/TestCase.test_illegal_directory