fix mocked logger
@@ -828,6 +828,7 @@ def mocked_logger():
logger.debug(msg)
elif level == logging.INFO:
logger.info(msg)
+ else:
raise ValueError("unexpected logging level = {}".format(level))
with mock.patch("moler.io.raw.sshshell.SshShell._log", mocked_log):
