#NEWLINE# def test_sendNickSendsGreeting( self ) : #NEWLINE# #INDENT# '\n        Receiving NICK without authenticating sends the MOTD Start and MOTD End\n        messages, which is required by certain popular IRC clients (such as\n        Pidgin) before a connection is considered to be fully established.\n        ' #NEWLINE# self . ircUser . irc_NICK ( '' , [ 'mynick' ] ) #NEWLINE# response = self . response ( ) #NEWLINE# start = list ( self . scanResponse ( response , irc . RPL_MOTDSTART ) ) #NEWLINE# end = list ( self . scanResponse ( response , irc . RPL_ENDOFMOTD ) ) #NEWLINE# self . assertEquals ( start , [ ( 0 , ( 'example.com' , '375' , [ 'mynick' , '- example.com Message of the Day - ' ] ) ) ] ) #NEWLINE# self . assertEquals ( end , [ ( 1 , ( 'example.com' , '376' , [ 'mynick' , 'End of /MOTD command.' ] ) ) ] )