From 6d68fd4500c9a6e6ff3965fdb0b4f5ca29bf0b2f Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 7 Aug 2020 00:54:00 +0300 Subject: [PATCH] python: test get_mute_duration() --- python/tests/test_account.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index c15fe4b5b..6b016b20e 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -276,12 +276,15 @@ class TestOfflineChat: def test_mute(self, ac1): chat = ac1.create_group_chat(name="title1") assert not chat.is_muted() + assert chat.get_mute_duration() == 0 chat.mute() assert chat.is_muted() + assert chat.get_mute_duration() == -1 chat.unmute() assert not chat.is_muted() chat.mute(50) assert chat.is_muted() + assert chat.get_mute_duration() <= 50 with pytest.raises(ValueError): chat.mute(-51)