Exemple #1
0
  def setUp(self):
    super(ApplicationLoggerTests, self).setUp()

    self.l = server_logging.GrrApplicationLogger()

    self.log = ""
    self.log_stubber = utils.Stubber(logging, "info", self.Log)
    self.log_stubber.Start()
Exemple #2
0
    def setUp(self):
        super().setUp()

        self.l = server_logging.GrrApplicationLogger()

        self.log = ""
        log_stubber = utils.Stubber(logging, "info", self.Log)
        log_stubber.Start()
        self.addCleanup(log_stubber.Stop)