<s> from supybot . test import * <EOL> class GamesTestCase ( ChannelPluginTestCase ) : <EOL> plugins = ( '<STR_LIT>' , ) <EOL> _nonKickRe = re . compile ( r'<STR_LIT>' , re . I ) <EOL> def testRoulette ( self ) : <EOL> self . irc . feedMsg ( ircmsgs . op ( self . channel , self . irc . nick ) ) <EOL> sawKick = False <EOL> for i in range ( <NUM_LIT:100> ) : <EOL> m = self . getMsg ( '<STR_LIT>' , frm = '<STR_LIT>' ) <EOL> if m . command == '<STR_LIT>' : <EOL> self . failUnless ( self . _nonKickRe . search ( m . args [ <NUM_LIT:1> ] ) , <EOL> '<STR_LIT>' % m ) <EOL> elif m . command == '<STR_LIT>' : <EOL> sawKick = True <EOL> self . failUnless ( '<STR_LIT>' in m . args [ <NUM_LIT:2> ] . lower ( ) , <EOL> '<STR_LIT>' ) <EOL> else : <EOL> self . fail ( '<STR_LIT>' ) <EOL> self . failUnless ( sawKick , '<STR_LIT>' % i ) <EOL> def testEightball ( self ) : <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) </s>
