From 8fbc182fc940267f5029aebea009e343dfbe3f4a Mon Sep 17 00:00:00 2001 From: Oleg A Date: Thu, 5 Nov 2020 13:27:57 +0300 Subject: [PATCH] AIOG-T-64 added logOut method test --- tests/test_bot.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_bot.py b/tests/test_bot.py index cf1c3c3b..bbfb91fb 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -24,6 +24,14 @@ async def test_get_me(bot: Bot, event_loop): assert result == user +async def test_log_out(bot: Bot, event_loop): + """ logOut method test """ + + async with FakeTelegram(message_data=True, loop=event_loop): + result = await bot.log_out() + assert result is True + + async def test_send_message(bot: Bot, event_loop): """ sendMessage method test """ from .types.dataset import MESSAGE