#NEWLINE# def test_default_args( self ) : #NEWLINE# #INDENT# ic = icmp . icmp ( ) #NEWLINE# buf = ic . serialize ( bytearray ( ) , None ) #NEWLINE# res = struct . unpack ( icmp . icmp . _PACK_STR , six . binary_type ( buf [ : 4 ] ) ) #NEWLINE# eq_ ( res [ 0 ] , 8 ) #NEWLINE# eq_ ( res [ 1 ] , 0 ) #NEWLINE# eq_ ( buf [ 4 : ] , b'\x00\x00\x00\x00' ) #NEWLINE# ic = icmp . icmp ( type_ = icmp . ICMP_DEST_UNREACH , data = icmp . dest_unreach ( ) ) #NEWLINE# buf = ic . serialize ( bytearray ( ) , None ) #NEWLINE# res = struct . unpack ( icmp . icmp . _PACK_STR , six . binary_type ( buf [ : 4 ] ) ) #NEWLINE# eq_ ( res [ 0 ] , 3 ) #NEWLINE# eq_ ( res [ 1 ] , 0 ) #NEWLINE# eq_ ( self [ 4 : ] , b'\x00\x00\x00\x00' )