#NEWLINE# def check_enable_mode( self , check_string = '' ) : #NEWLINE# #INDENT# 'Check if in enable mode. Return boolean.' #NEWLINE# self . remote_conn . sendall ( '\n' ) #NEWLINE# output = self . read_until_prompt ( ) #NEWLINE# return ( check_string in output )