#NEWLINE# def testTell( self ) : #NEWLINE# #INDENT# self . assertError ( ( 'anonymous tell %s I love you!' % self . nick ) ) #NEWLINE# origreg = conf . supybot . plugins . Anonymous . requireRegistration ( ) #NEWLINE# origpriv = conf . supybot . plugins . Anonymous . allowPrivateTarget ( ) #NEWLINE# try : #NEWLINE# #INDENT# conf . supybot . plugins . Anonymous . requireRegistration . setValue ( False ) #NEWLINE# self . assertError ( ( 'anonymous tell %s foo!' % self . channel ) ) #NEWLINE# conf . supybot . plugins . Anonymous . allowPrivateTarget . setValue ( True ) #NEWLINE# m = self . assertNotError ( ( 'anonymous tell %s foo!' % self . nick ) ) #NEWLINE# self . failUnless ( ( m . args [ 1 ] == 'foo!' ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# conf . supybot . plugins . Anonymous . requireRegistration . setValue ( self ) #NEWLINE# conf . supybot . plugins . Anonymous . allowPrivateTarget . setValue ( origpriv )