#NEWLINE# def test_update_net_io_counters( self ) : #NEWLINE# #INDENT# r = PsDashRunner ( ) #NEWLINE# socket . getaddrinfo ( 'example.org' , 80 ) #NEWLINE# counters = r . get_local_node ( ) . net_io_counters . update ( ) #NEWLINE# for c in counters . itervalues ( ) : #NEWLINE# #INDENT# if ( ( counters [ 'rx_per_sec' ] > 0 ) and ( c [ 'tx_per_sec' ] > 0 ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( "Didn't find any changed network interface" )