mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
Add test for unstripped tokens [ci skip]
This commit is contained in:
parent
b987c8937c
commit
af89cbecf3
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,9 @@ class BotTest(BaseTest, unittest.TestCase):
|
|||
def testInvalidToken3(self):
|
||||
self._test_invalid_token('12:')
|
||||
|
||||
def testInvalidToken4(self):
|
||||
self._test_invalid_token('1234:abcd1234\n')
|
||||
|
||||
def testUnauthToken(self):
|
||||
with self.assertRaisesRegexp(telegram.error.Unauthorized, 'Unauthorized'):
|
||||
bot = telegram.Bot('1234:abcd1234')
|
||||
|
|
Loading…
Add table
Reference in a new issue