mitmproxy/test/netlib/test_debug.py

24 lines
413 B
Python
Raw Normal View History

2016-10-17 03:38:31 +00:00
import io
2016-06-11 05:56:17 +00:00
from netlib import debug
def test_dump_info():
2016-10-17 03:38:31 +00:00
cs = io.StringIO()
2016-10-04 05:48:13 +00:00
debug.dump_info(None, None, file=cs, testing=True)
assert cs.getvalue()
def test_dump_stacks():
2016-10-17 03:38:31 +00:00
cs = io.StringIO()
2016-10-04 05:48:13 +00:00
debug.dump_stacks(None, None, file=cs, testing=True)
assert cs.getvalue()
2016-06-11 05:56:17 +00:00
def test_sysinfo():
assert debug.sysinfo()
2016-06-14 01:06:44 +00:00
def test_register_info_dumpers():
debug.register_info_dumpers()