mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
25 lines
480 B
Python
25 lines
480 B
Python
from __future__ import (absolute_import, print_function, division)
|
|
from six.moves import cStringIO as StringIO
|
|
|
|
from netlib import debug
|
|
|
|
|
|
def test_dump_info():
|
|
cs = StringIO()
|
|
debug.dump_info(None, None, file=cs)
|
|
assert cs.getvalue()
|
|
|
|
|
|
def test_dump_stacks():
|
|
cs = StringIO()
|
|
debug.dump_stacks(None, None, file=cs)
|
|
assert cs.getvalue()
|
|
|
|
|
|
def test_sysinfo():
|
|
assert debug.sysinfo()
|
|
|
|
|
|
def test_register_info_dumpers():
|
|
debug.register_info_dumpers()
|