def test_function_tag(self): trace = LogTrace(logger=logger, tag='STDDEV', level=logging.INFO, verbosity='vv') standard_deviation(s, trace=trace) print(trace.emit_string())
def test_logtrace_unique_id(self): trace = LogTrace(logger=logger, unique_id=True, level=logging.INFO, verbosity='vvv') trace.add("first message") trace.add("second message") print(trace.emit_string())
def test_unicode(self): trace = LogTrace(logger) s = "ƀ Ɓ Ƃ ƃ Ƅ ƅ Ɔ Ƈ ƈ Ɖ Ɗ Ƌ ƌ ƍ Ǝ Ə Ɛ Ƒ ƒ Ɠ Ɣ ƕ Ɩ Ɨ Ƙ ƙ ƚ ƛ Ɯ Ɲ ƞ Ɵ Ơ ơ Ƣ ƣ Ƥ ƥ Ʀ Ƨ ƨ Ʃ ƪ ƫ Ƭ ƭ Ʈ Ư ư Ʊ Ʋ Ƴ ƴ Ƶ ƶ Ʒ Ƹ ƹ ƺ ƻ Ƽ ƽ ƾ ƿ ǀ ǁ ǂ ǃ DŽ Dž dž LJ Lj lj NJ Nj nj Ǎ ǎ Ǐ ǐ Ǒ ǒ Ǔ ǔ Ǖ ǖ Ǘ ǘ Ǚ ǚ Ǜ ǜ ǝ Ǟ ǟ Ǡ ǡ Ǣ ǣ Ǥ ǥ Ǧ ǧ Ǩ ǩ Ǫ ǫ Ǭ ǭ Ǯ ǯ ǰ DZ Dz dz Ǵ ǵ Ǻ ǻ Ǽ ǽ Ǿ ǿ Ȁ ȁ Ȃ ȃ" trace.add(s) print(trace.emit_string())
def test_function(self): trace = LogTrace(logger=logger, level=logging.INFO) standard_deviation(s, trace=trace) print(trace.emit_string())
def test_logtrace_simple(self): trace = LogTrace(logger, unique_id=True, verbosity='v') trace.add("first message") trace.add("second message") print(trace.emit_string()) trace.emit("finally")