Пример #1
0
 def setUp(self):
     self.bot = botcode.Bot(nick_source='test_nicks.csv', wait_time=.1)
     botcode.NewComer('Harry', self.bot)
     botcode.NewComer('Hermione', self.bot)
     time.sleep(.15)
     botcode.NewComer('Ron', self.bot)
     self.ircsock = fake_irc_start()
Пример #2
0
 def test_newcomer_around_for(self):
     newComer = botcode.NewComer('Shauna', botcode.Bot())
     time.sleep(0.01)
     self.assertAlmostEqual(newComer.around_for(), .01, places=2)
Пример #3
0
 def test_newcomer_init_born(self):
     newComer = botcode.NewComer('Baby', botcode.Bot())
     time.sleep(0.01)
     self.assertAlmostEqual(newComer.born, time.time() - .01, places=2)
Пример #4
0
 def setUp(self):
     self.bot = botcode.Bot('test_nicks.csv')
     self.NewComer = botcode.NewComer('Nancy', self.bot)
Пример #5
0
 def setUp(self):
     self.bot = botcode.Bot('test_nicks.csv')
     botcode.NewComer('Chappe', self.bot)
     self.ircsock = fake_irc_start()