summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/util/tests/test_streamtologger.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-08-20 17:51:08 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-08-20 17:51:08 -0300
commit9ec62e91c5e68084f45eace46ff1fd892d8fd238 (patch)
treeeaf036ac43ec9778024382b7797836e96a5c4d92 /src/leap/bitmask/util/tests/test_streamtologger.py
parentec7a9bf80e2a0c2c9dc1c160c065524d1e1d6b95 (diff)
Improve test coverage for StreamToLogger.
Diffstat (limited to 'src/leap/bitmask/util/tests/test_streamtologger.py')
-rw-r--r--src/leap/bitmask/util/tests/test_streamtologger.py4
1 files changed, 4 insertions, 0 deletions
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)