mitmproxy/test/netlib/test_debug.py

25 lines
508 B
Python
Raw Normal View History

from __future__ import (absolute_import, print_function, division)
from six.moves import cStringIO as StringIO
2016-06-11 05:56:17 +00:00
from netlib import debug
def test_dump_info():
cs = 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():
cs = 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()