def assertLogRecords(self, records, matches):
self.assertEqual(len(records), len(matches))
for rec, match in zip(records, matches):
self.assertIsInstance(rec, logging.LogRecord)
for k, v in match.items():
self.assertEqual(getattr(rec, k), v)
test_case.py 文件源码
python
阅读 36
收藏 0
点赞 0
评论 0
评论列表
文章目录