#NEWLINE# def testInit( self ) : #NEWLINE# #INDENT# for msg in msgs : #NEWLINE# #INDENT# self . assertEqual ( msg , ircmsgs . IrcMsg ( prefix = msg . prefix , command = msg . command , args = m . args ) ) #NEWLINE# self . assertEqual ( msg , ircmsgs . IrcMsg ( msg = msg ) ) #NEWLINE# #UNINDENT# self . assertRaises ( ValueError , ircmsgs . IrcMsg , args = ( 'foo' , 'bar' ) , prefix = 'foo!bar@baz' ) #NEWLINE# m = ircmsgs . IrcMsg ( prefix = 'foo!bar@baz' , args = ( 'foo' , 'bar' ) , command = 'CMD' ) #NEWLINE# self . assertIs ( m . time , None ) #NEWLINE# m . time = 24 #NEWLINE# self . assertEqual ( ircmsgs . IrcMsg ( msg = m ) . time , 24 )