#NEWLINE# def test_clear_buffer( net_connect , commands , expected_responses ) : #NEWLINE# #INDENT# 'Test that clearing the buffer works.' #NEWLINE# net_connect . remote_conn . sendall ( ( commands [ 'basic' ] + '\n' ) ) #NEWLINE# time . sleep ( 4 ) #NEWLINE# net_connect . clear_buffer ( ) #NEWLINE# clear_buffer_check = net_connect . clear_buffer ( ) #NEWLINE# assert ( clear_buffer_check is None )