Add send video note test case.

This commit is contained in:
eternnoir 2017-05-21 19:58:00 +08:00
parent 43a30e7777
commit 9134e8dd1a
1 changed files with 6 additions and 0 deletions

View File

@ -403,3 +403,9 @@ class TestTeleBot:
def test_not_string(self):
i1 = 10
assert not util.is_string(i1)
def test_send_video_note(self):
file_data = open('./test_data/test_video.mp4', 'rb')
tb = telebot.TeleBot(TOKEN)
ret_msg = tb.send_video_note(CHAT_ID, file_data)
assert ret_msg.message_id