#NEWLINE# def testSerializeMessageSetWireFormatUnknownExtension( self ) : #NEWLINE# #INDENT# raw = unittest_mset_pb2 . RawMessageSet ( ) #NEWLINE# item = raw . item . add ( ) #NEWLINE# item . type_id = 1545009 #NEWLINE# message1 = unittest_mset_pb2 . TestMessageSetExtension1 ( ) #NEWLINE# message1 . i = 12345 #NEWLINE# item . message = message1 . SerializeToString ( ) #NEWLINE# serialized = raw . SerializeToString ( ) #NEWLINE# proto = unittest_mset_pb2 . TestMessageSet ( ) #NEWLINE# proto . MergeFromString ( serialized ) #NEWLINE# reserialized = proto . SerializeToString ( ) #NEWLINE# new_raw = unittest_mset_pb2 . RawMessageSet ( ) #NEWLINE# new_raw . MergeFromString ( item ) #NEWLINE# self . assertEqual ( raw , new_raw )