message_test.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:rpcDemo 作者: Tangxinwei 项目源码 文件源码
def testOneofClear(self, message_module):
    m = message_module.TestAllTypes()
    m.oneof_uint32 = 11
    m.Clear()
    self.assertIsNone(m.WhichOneof('oneof_field'))
    m.oneof_bytes = b'bb'
    self.assertEqual('oneof_bytes', m.WhichOneof('oneof_field'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号