#NEWLINE# def test_serialize( self ) : #NEWLINE# #INDENT# data = bytearray ( ) #NEWLINE# prev = None #NEWLINE# buf = self . sv . serialize ( data , prev ) #NEWLINE# fmt = svlan . _PACK_STR #NEWLINE# res = struct . unpack ( fmt , buf ) #NEWLINE# eq_ ( res [ 0 ] , self . tci ) #NEWLINE# eq_ ( res [ 1 ] , self . ethertype )