#NEWLINE# def _test_transport_connectivity( self , direction , protocol , src_port , dst_port ) : #NEWLINE# #INDENT# nc_tester = self . _create_nc_tester ( direction , protocol , src_port , dst_port ) #NEWLINE# try : #NEWLINE# #INDENT# nc_tester . test_connectivity ( ) #NEWLINE# #UNINDENT# except RuntimeError as exc : #NEWLINE# #INDENT# nc_tester . stop_processes ( ) #NEWLINE# raise ConnectionTesterException ( ( "%s connection over %s protocol with %s source port and %s destination port can't be established: %s" % ( direction , protocol , src_port , dst_port , exc ) ) )