Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. @flaky(3, 1)
  2.     @pytest.mark.timeout(10)
  3.     def test_restrict_chat_member(self, bot, channel_id, chat_permissions):
  4.         # TODO: Add bot to supergroup so this can be tested properly
  5.         with pytest.raises(BadRequest, match='Method is available only for supergroups'):
  6.             assert bot.restrict_chat_member(channel_id,
  7.                                             95205500,
  8.                                             chat_permissions,
  9.                                             until_date=datetime.now())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement