#NEWLINE# def test_serialize( self ) : #NEWLINE# #INDENT# data = bytearray ( ) #NEWLINE# prev = None #NEWLINE# buf = self . g . serialize ( data , prev ) #NEWLINE# res = unpack_from ( igmpv3_report . _PACK_STR , six . binary_type ( buf ) ) #NEWLINE# eq_ ( res [ 0 ] , self . msgtype ) #NEWLINE# eq_ ( res [ 1 ] , checksum ( self . buf ) ) #NEWLINE# eq_ ( self [ 2 ] , self . record_num )