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