<s> from supybot . test import * <EOL> import supybot . ircutils as ircutils <EOL> class ReplyTestCase ( ChannelPluginTestCase ) : <EOL> plugins = ( '<STR_LIT>' , ) <EOL> def testPrivate ( self ) : <EOL> m = self . getMsg ( '<STR_LIT>' ) <EOL> self . failIf ( ircutils . isChannel ( m . args [ <NUM_LIT:0> ] ) ) <EOL> def testNotice ( self ) : <EOL> m = self . getMsg ( '<STR_LIT>' ) <EOL> self . assertEqual ( m . command , '<STR_LIT>' ) <EOL> def testNoticePrivate ( self ) : <EOL> m = self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertEqual ( m . command , '<STR_LIT>' ) <EOL> self . assertEqual ( m . args [ <NUM_LIT:0> ] , self . nick ) <EOL> m = self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertEqual ( m . command , '<STR_LIT>' ) <EOL> self . assertEqual ( m . args [ <NUM_LIT:0> ] , self . nick ) <EOL> class ReplyNonChannelTestCase ( PluginTestCase ) : <EOL> plugins = ( '<STR_LIT>' , ) <EOL> def testAction ( self ) : <EOL> self . prefix = '<STR_LIT>' <EOL> self . nick = '<STR_LIT>' <EOL> m = self . assertAction ( '<STR_LIT>' , '<STR_LIT:foo>' ) <EOL> self . failIf ( m . args [ <NUM_LIT:0> ] == self . irc . nick ) </s>
