def setUp(self):
# If you depend on log messages, use testfixtures.log_capture() to test
# for their presence and assert their contents. For the purposes of
# the test runner, log messages on stdout/stderr are spam.
logging.getLogger().setLevel(logging.WARNING)
评论列表
文章目录