def test_encode_too_short_fails(self):
    test_message = test_message_pb2.TestMessage()
    test_message.CopyFrom(valid_test_message)
    test_message.var_bytes2 = 'sho'
    self.verify_encode_fails(test_message)
def test_encode_too_short_fails(self):
    test_message = test_message_pb2.TestMessage()
    test_message.CopyFrom(valid_test_message)
    test_message.var_bytes2 = 'sho'
    self.verify_encode_fails(test_message)