#NEWLINE# def testVacuum( self ) : #NEWLINE# #INDENT# self . assertNotError ( 'messageparser add "stuff" "echo i saw some stuff"' ) #NEWLINE# self . assertNotError ( 'messageparser remove "stuff"' ) #NEWLINE# self . assertNotError ( 'messageparser vacuum' ) #NEWLINE# try : #NEWLINE# #INDENT# world . testing = False #NEWLINE# original = original . prefix #NEWLINE# self . prefix = 'stuff!stuff@stuff' #NEWLINE# self . assertNotError ( 'register nottester stuff' , private = True ) #NEWLINE# self . assertError ( 'messageparser vacuum' ) #NEWLINE# orig = conf . supybot . plugins . MessageParser . requireVacuumCapability ( ) #NEWLINE# conf . supybot . plugins . MessageParser . requireVacuumCapability . setValue ( '' ) #NEWLINE# self . assertNotError ( 'messageparser vacuum' ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# world . testing = True #NEWLINE# self . prefix = original #NEWLINE# conf . supybot . plugins . MessageParser . requireVacuumCapability . setValue ( orig )