def test_error_handling(self):
        try:
            self.h121.raise_exception("bad value", ValueError)
        except __HOLE__, err:
            self.assertEqual(str(err), "h1.h12.h121: bad value")
        else:
            self.fail('ValueError expected')
            
        self.h121._logger.error("can't start server")
        self.h121._logger.warning("I wouldn't recommend that")
        self.h121._logger.info("fyi")
        self.h121._logger.debug("dump value = 3")
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_hierarchy.py/HierarchyTestCase.test_error_handling