def test_encode_too_large_value_fails(self):
    test_message = test_message_pb2.TestMessage()
    test_message.CopyFrom(valid_test_message)
    test_message.uint_8 = 65000
    self.verify_encode_fails(test_message)
def test_encode_too_large_value_fails(self):
    test_message = test_message_pb2.TestMessage()
    test_message.CopyFrom(valid_test_message)
    test_message.uint_8 = 65000
    self.verify_encode_fails(test_message)