#NEWLINE# def testServerTags( self ) : #NEWLINE# #INDENT# s = '@aaa=b\\:bb;ccc;example.com/ddd=ee\\\\se :nick!ident@host.com PRIVMSG me :Hello' #NEWLINE# m = ircmsgs . IrcMsg ( s ) #NEWLINE# self . assertEqual ( m . server_tags , { #NEWLINE# #INDENT# 'aaa' : 'b;bb' , #NEWLINE# 'ccc' : None , #NEWLINE# 'example.com/ddd' : 'ee\\se' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( s . prefix , 'nick!ident@host.com' ) #NEWLINE# self . assertEqual ( m . command , 'PRIVMSG' ) #NEWLINE# self . assertEqual ( m . args , ( 'me' , 'Hello' ) ) #NEWLINE# self . assertEqual ( str ( m ) , ( s + '\n' ) )