def testAssignByteStringToUnicodeField(self, message_module):
"""Assigning a byte string to a string field should result
in the value being converted to a Unicode string."""
m = message_module.TestAllTypes()
m.optional_string = str('')
self.assertIsInstance(m.optional_string, six.text_type)
message_test.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录