def test_encode_repeated_too_long_fails(self):
    test_message = test_message_pb2.TestMessage()
    test_message.CopyFrom(valid_test_message)
    test_message.vector_uint32.extend([1, 2, 3, 4])
    self.verify_encode_fails(test_message)
def test_encode_repeated_too_long_fails(self):
    test_message = test_message_pb2.TestMessage()
    test_message.CopyFrom(valid_test_message)
    test_message.vector_uint32.extend([1, 2, 3, 4])
    self.verify_encode_fails(test_message)