From 36dc1633f5db65b0e3cc48e66f651a0d316f7238 Mon Sep 17 00:00:00 2001 From: leandrotoledo Date: Mon, 7 Sep 2015 15:54:50 -0300 Subject: [PATCH] Move old tests to legacy dir until get new ones written --- tests/{ => legacy}/test_bot.py | 26 +--------------------- tests/{ => legacy}/test_command_handler.py | 0 2 files changed, 1 insertion(+), 25 deletions(-) rename tests/{ => legacy}/test_bot.py (89%) rename tests/{ => legacy}/test_command_handler.py (100%) diff --git a/tests/test_bot.py b/tests/legacy/test_bot.py similarity index 89% rename from tests/test_bot.py rename to tests/legacy/test_bot.py index 11479784f..beb7be708 100644 --- a/tests/test_bot.py +++ b/tests/legacy/test_bot.py @@ -51,7 +51,7 @@ class BotTest(unittest.TestCase): bot = self._bot.getMe() self.assertTrue(self.is_json(bot.to_json())) - self.assertEqual(bot.id, 120405045) + self.assertEqual(bot.id, 133505823) self.assertEqual(bot.first_name, 'Toledo\'s Palace Bot') self.assertEqual(bot.last_name, '') self.assertEqual(bot.username, 'ToledosPalaceBot') @@ -135,30 +135,6 @@ class BotTest(unittest.TestCase): self.assertTrue(self.is_json(message.to_json())) self.assertEqual(message.photo[0].file_size, 684) - def testSendAudio(self): - '''Test the telegram.Bot sendAudio method''' - print('Testing sendAudio - File') - message = self._bot.sendAudio(audio=open('tests/data/telegram.mp3', 'rb'), - chat_id=self._chat_id, - performer='Leandro Toledo', - title='Teste') - - self.assertTrue(self.is_json(message.to_json())) - self.assertEqual(message.audio.file_size, 28232) - self.assertEqual(message.audio.performer, 'Leandro Toledo') - self.assertEqual(message.audio.title, 'Teste') - - def testResendAudio(self): - '''Test the telegram.Bot sendAudio method''' - print('Testing sendAudio - Resend') - message = self._bot.sendAudio(audio='BQADAQADwwcAAjU8LQdBRsl3_qD2TAI', - chat_id=self._chat_id, - performer='Leandro Toledo', # Bug #39 - title='Teste') # Bug #39 - - self.assertTrue(self.is_json(message.to_json())) - self.assertEqual(message.audio.file_id, 'BQADAQADwwcAAjU8LQdBRsl3_qD2TAI') - def testSendVoice(self): '''Test the telegram.Bot sendVoice method''' print('Testing sendVoice - File') diff --git a/tests/test_command_handler.py b/tests/legacy/test_command_handler.py similarity index 100% rename from tests/test_command_handler.py rename to tests/legacy/test_command_handler.py