#NEWLINE# def testPasswordAndIdentify( self ) : #NEWLINE# #INDENT# self . assertNotError ( 'services password foo bar' ) #NEWLINE# self . assertError ( 'services identify' ) #NEWLINE# self . assertNotError ( ( 'services password %s baz' % self . nick ) ) #NEWLINE# m = self . assertNotError ( 'services identify' ) #NEWLINE# self . failUnless ( ( m . args [ 0 ] == 'NickServ' ) ) #NEWLINE# self . failUnless ( ( m . args [ 1 ] . lower ( ) == 'identify baz' ) ) #NEWLINE# self . assertNotError ( ( 'services password %s biff' % self . nick ) ) #NEWLINE# m = self . assertNotError ( 'services identify' ) #NEWLINE# self . failUnless ( ( m . args [ 0 ] == 'NickServ' ) ) #NEWLINE# self . failUnless ( ( m . args [ 1 ] . lower ( ) == 'identify biff' ) )