From 9ec62e91c5e68084f45eace46ff1fd892d8fd238 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Tue, 20 Aug 2013 17:51:08 -0300 Subject: Improve test coverage for StreamToLogger. --- src/leap/bitmask/util/tests/test_streamtologger.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/leap/bitmask/util/tests/test_streamtologger.py b/src/leap/bitmask/util/tests/test_streamtologger.py index c4e55b3a..fc97b794 100644 --- a/src/leap/bitmask/util/tests/test_streamtologger.py +++ b/src/leap/bitmask/util/tests/test_streamtologger.py @@ -117,6 +117,10 @@ class StreamToLoggerTest(BaseLeapTest): self.assertEqual(log, message) self.assertEqual(log_level, logging.ERROR) + def test_twisted_log(self): + from twisted.python import log + log.startLogging(sys.stdout) + if __name__ == "__main__": unittest.main(verbosity=2) -- cgit v1.2.3