From 1cacfb30ff53839a880dd6cee95c04cce1e12b67 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Thu, 22 Oct 2020 21:41:28 -0400 Subject: [PATCH] avoid usage of deprecated contact.set_blocked() --- python/tests/test_account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index 3a8cc3c41..bb16316a2 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -1521,7 +1521,7 @@ class TestOnlineAccount: lp.sec("ac1 blocks ac2") contact = ac1.create_contact(ac2) - contact.set_blocked() + contact.block() assert contact.is_blocked() ev = ac1._evtracker.get_matching("DC_EVENT_CONTACTS_CHANGED") assert ev.data1 == contact.id