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()
def test_newcomer_around_for(self): newComer = botcode.NewComer('Shauna', botcode.Bot()) time.sleep(0.01) self.assertAlmostEqual(newComer.around_for(), .01, places=2)
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)
def setUp(self): self.bot = botcode.Bot('test_nicks.csv') self.NewComer = botcode.NewComer('Nancy', self.bot)
def setUp(self): self.bot = botcode.Bot('test_nicks.csv') botcode.NewComer('Chappe', self.bot) self.ircsock = fake_irc_start()