def testParseBadIntValue(self, message_module):
message = message_module.TestAllTypes()
text = 'optional_int32: bork'
six.assertRaisesRegex(self, text_format.ParseError,
('1:17 : Couldn\'t parse integer: bork'),
text_format.Parse, text, message)
text_format_test.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录