From 4023ee29547f51a806890a4f620850c539609b83 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 1 Dec 2017 02:11:05 +0200 Subject: [PATCH] Add test_chat.test_chat_actions --- tests/test_chat.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_chat.py b/tests/test_chat.py index 862e1604..c2b6de4a 100644 --- a/tests/test_chat.py +++ b/tests/test_chat.py @@ -46,3 +46,16 @@ def test_chat_type_filters(): assert not types.ChatType.is_super_group(test_message.message) assert not types.ChatType.is_group_or_super_group(test_message.message) assert not types.ChatType.is_channel(test_message.message) + + +def test_chat_actions(): + assert types.ChatActions.TYPING == 'typing' + assert types.ChatActions.UPLOAD_PHOTO == 'upload_photo' + assert types.ChatActions.RECORD_VIDEO == 'record_video' + assert types.ChatActions.UPLOAD_VIDEO == 'upload_video' + assert types.ChatActions.RECORD_AUDIO == 'record_audio' + assert types.ChatActions.UPLOAD_AUDIO == 'upload_audio' + assert types.ChatActions.UPLOAD_DOCUMENT == 'upload_document' + assert types.ChatActions.FIND_LOCATION == 'find_location' + assert types.ChatActions.RECORD_VIDEO_NOTE == 'record_video_note' + assert types.ChatActions.UPLOAD_VIDEO_NOTE == 'upload_video_note'