#NEWLINE# def assert_net_unreachable( self , direction , destination ) : #NEWLINE# #INDENT# ( src_namespace , dst_address ) = self . _get_namespace_and_address ( direction ) #NEWLINE# pinger = net_helpers . Pinger ( self , destination , count = 5 ) #NEWLINE# pinger . start ( ) #NEWLINE# pinger . wait ( ) #NEWLINE# if ( not pinger . destination_unreachable ) : #NEWLINE# #INDENT# raise ConnectionTesterException ( ( 'No Host Destination Unreachable packets were received when sending icmp packets to %s' % destination ) )