make sure to stop Updater after the test_createBot is over

This commit is contained in:
Noam Meltzer 2016-06-18 00:01:36 +03:00
parent e479c7f25e
commit d37b6d6735

View file

@ -639,8 +639,8 @@ class UpdaterTest(BaseTest, unittest.TestCase):
self.assertFalse(self.updater.running)
def test_createBot(self):
updater = Updater('123:abcd')
self.assertIsNotNone(updater.bot)
self.updater = Updater('123:abcd')
self.assertIsNotNone(self.updater.bot)
def test_mutualExclusiveTokenBot(self):
bot = Bot('123:zyxw')