#NEWLINE# def testKeepRankInfo( self ) : #NEWLINE# #INDENT# orig = conf . supybot . plugins . MessageParser . keepRankInfo ( ) #NEWLINE# try : #NEWLINE# #INDENT# conf . supybot . plugins . MessageParser . keepRankInfo . setValue ( False ) #NEWLINE# self . assertNotError ( 'messageparser add "stuff" "echo i saw some stuff"' ) #NEWLINE# self . feedMsg ( 'instead of asdf, dvorak has aoeu' ) #NEWLINE# self . getMsg ( ' ' ) #NEWLINE# self . assertRegexp ( 'messageparser info "stuff"' , 'has been triggered 0 times' ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# conf . supybot . plugins . MessageParser . keepRankInfo . setValue ( orig ) #NEWLINE# #UNINDENT# self . feedMsg ( 'this message has some stuff in it' ) #NEWLINE# self . getMsg ( ' ' ) #NEWLINE# self . assertRegexp ( 'messageparser info "stuff"' , 'has been triggered 1 times' )