<s> from __future__ import print_function <EOL> import time <EOL> from supybot . test import * <EOL> class NewsTestCase ( ChannelPluginTestCase ) : <EOL> plugins = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def setUp ( self ) : <EOL> ChannelPluginTestCase . setUp ( self ) <EOL> self . prefix = '<STR_LIT>' <EOL> self . irc . feedMsg ( ircmsgs . privmsg ( self . nick , '<STR_LIT>' , <EOL> prefix = self . prefix ) ) <EOL> m = self . irc . takeMsg ( ) <EOL> def testAddnews ( self ) : <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> print ( ) <EOL> print ( '<STR_LIT>' ) <EOL> time . sleep ( <NUM_LIT:6> ) <EOL> print ( '<STR_LIT>' ) <EOL> self . assertNotRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def testNews ( self ) : <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> def testChangenews ( self ) : <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertNotRegexp ( '<STR_LIT>' , '<STR_LIT:bar>' ) <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def testOldnews ( self ) : <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) <EOL> self . assertRegexp ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> print ( ) <EOL> print ( '<STR_LIT>' ) <EOL> time . sleep ( <NUM_LIT:6> ) <EOL> print ( '<STR_LIT>' ) <EOL> self . assertNotError ( '<STR_LIT>' ) </s>
