2016-06-11 07:52:24 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2016-06-11 07:52:24 +00:00
|
|
|
def test_dump_info():
|
|
|
|
cs = StringIO()
|
2016-10-04 05:48:13 +00:00
|
|
|
debug.dump_info(None, None, file=cs, testing=True)
|
2016-06-11 07:52:24 +00:00
|
|
|
assert cs.getvalue()
|
|
|
|
|
|
|
|
|
2016-06-11 11:07:42 +00:00
|
|
|
def test_dump_stacks():
|
|
|
|
cs = StringIO()
|
2016-10-04 05:48:13 +00:00
|
|
|
debug.dump_stacks(None, None, file=cs, testing=True)
|
2016-06-11 11:07:42 +00:00
|
|
|
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()
|