def testSummaryWriterFailsAfterClear(self):
   tensorboard_logging._clear_summary_writer()
   with self.assertRaises(RuntimeError):
     tensorboard_logging.log(tensorboard_logging.ERROR, "failure")
  def testBadVerbosity(self):
    with self.assertRaises(ValueError):
      tensorboard_logging.set_verbosity("failure")

    with self.assertRaises(ValueError):
      tensorboard_logging.log("bad", "dead")