def testHasFieldOnRepeatedField(self, message_module):
    """Using HasField on a repeated field should raise an exception.
    """
    m = message_module.TestAllTypes()
    with self.assertRaises(ValueError) as _:
      m.HasField('repeated_int32')
Using HasField on a repeated field should raise an exception.
    
deps/protobuf/python/google/protobuf/internal/message_test.py