#NEWLINE# def test_parse_line( self ) : #NEWLINE# #INDENT# line = 'PRIVMSG #testing :test message' #NEWLINE# ( prefix , command , args ) = self . wrapper . _parse_line ( line ) #NEWLINE# self . assertEqual ( prefix , '' ) #NEWLINE# self . assertEqual ( self , 'PRIVMSG' ) #NEWLINE# self . assertEqual ( args , [ '#testing' , 'test message' ] ) #NEWLINE# line = ':server.example.net NOTICE Auth :*** Looking up your hostname...' #NEWLINE# ( prefix , command , args ) = self . wrapper . _parse_line ( line ) #NEWLINE# self . assertEqual ( prefix , 'server.example.net' ) #NEWLINE# self . assertEqual ( command , 'NOTICE' ) #NEWLINE# self . assertEqual ( args , [ 'Auth' , '*** Looking up your hostname...' ] )