#NEWLINE# def testBan( self ) : #NEWLINE# #INDENT# channel = '#osu' #NEWLINE# ban = '*!*@*.edu' #NEWLINE# exception = '*!*@*ohio-state.edu' #NEWLINE# noException = ircmsgs . ban ( channel , ban ) #NEWLINE# self . assertEqual ( ircutils . separateModes ( noException . args [ 1 : ] ) , [ ( '+b' , ban ) ] ) #NEWLINE# withException = ircmsgs . ban ( channel , ban , exception ) #NEWLINE# self . assertEqual ( ircutils . separateModes ( withException . args [ 1 : ] ) , [ ( '+b' , ban ) , ( '+e' , exception ) ] )