2016-06-11 07:52:24 +00:00
|
|
|
from __future__ import (absolute_import, print_function, division)
|
2016-10-17 03:38:31 +00:00
|
|
|
import io
|
2016-06-11 05:56:17 +00:00
|
|
|
|
|
|
|
from netlib import debug
|
|
|
|
|
|
|
|
|
2016-06-11 07:52:24 +00:00
|
|
|
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)
|
2016-06-11 07:52:24 +00:00
|
|
|
assert cs.getvalue()
|
|
|
|
|
|
|
|
|
2016-06-11 11:07:42 +00:00
|
|
|
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)
|
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()
|