def test_saybig_with_color_codes(self):
self.parser.msgPrefix = "[Pre]"
with patch.object(self.parser.output, 'write') as write_mock:
self.parser.saybig("^7message ^1with ^2color ^8codes")
write_mock.assert_has_calls([call('sm_hsay [Pre] message with color codes')])
# @unittest.skipIf(WAS_FROSTBITE_LOADED, "Frostbite(1|2) parsers monkey patch the Client class and make this test fail")
test_csgo.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录