mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-27 08:50:38 +01:00
I gave up, no support for Python 3.2 atm.
This commit is contained in:
parent
da6b7d496e
commit
23b99690a1
1 changed files with 1 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import telegram
|
import telegram
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
@ -26,10 +25,7 @@ class BotTest(unittest.TestCase):
|
||||||
print('Testing sendMessage')
|
print('Testing sendMessage')
|
||||||
message = self._bot.sendMessage(chat_id=12173560,
|
message = self._bot.sendMessage(chat_id=12173560,
|
||||||
text='Моё судно на воздушной подушке полно угрей')
|
text='Моё судно на воздушной подушке полно угрей')
|
||||||
if sys.version_info[0] < 3:
|
|
||||||
self.assertEqual(u'Моё судно на воздушной подушке полно угрей', message.text)
|
self.assertEqual(u'Моё судно на воздушной подушке полно угрей', message.text)
|
||||||
else:
|
|
||||||
self.assertEqual('Моё судно на воздушной подушке полно угрей', message.text)
|
|
||||||
|
|
||||||
def testGetUpdates(self):
|
def testGetUpdates(self):
|
||||||
'''Test the telegram.Bot getUpdates method'''
|
'''Test the telegram.Bot getUpdates method'''
|
||||||
|
|
Loading…
Add table
Reference in a new issue