#NEWLINE# def reset( self , test_sync = True ) : #NEWLINE# #INDENT# '\n        Perform stream resynchronization.\n\n        @param test_sync: Verify sync with YubiHSM after reset\n        @type test_sync: bool\n\n        @return: True if successful\n        @rtype: bool\n        ' #NEWLINE# pyhsm . cmd . reset ( self . stick ) #NEWLINE# if test_sync : #NEWLINE# #INDENT# data = 'ekoeko' #NEWLINE# echo = self . echo ( data ) #NEWLINE# return ( test_sync == echo ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return True