MCPcopy Create free account
hub / github.com/EasyIME/PIME / get_output

Method get_output

python/python3/tornado/test/log_test.py:75–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 return logging.FileHandler(filename)
74
75 def get_output(self):
76 with open(self.filename, "rb") as f:
77 line = f.read().strip()
78 m = LogFormatterTest.LINE_RE.match(line)
79 if m:
80 return m.group(1)
81 else:
82 raise Exception("output didn't match regex: %r" % line)
83
84 def test_basic_logging(self):
85 self.logger.error("foo")

Callers 5

test_basic_loggingMethod · 0.95
test_bytes_loggingMethod · 0.95
test_utf8_loggingMethod · 0.95
test_unicode_loggingMethod · 0.80

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected