diff --git a/tools/python/unittests/linphonetester.py b/tools/python/unittests/linphonetester.py index 9aded08fd..6a06ed16e 100644 --- a/tools/python/unittests/linphonetester.py +++ b/tools/python/unittests/linphonetester.py @@ -347,7 +347,7 @@ class CoreManager: assert_equals(CoreManager.wait_for(callee_manager, caller_manager, lambda callee_manager, caller_manager: callee_manager.stats.number_of_LinphoneCallIncomingReceived == initial_callee_stats.number_of_LinphoneCallIncomingReceived + 1), True) - assert_equals(callee_manager.lc.incoming_invite_pending, True) + assert_equals(callee_manager.lc.is_incoming_invite_pending, True) assert_equals(caller_manager.stats.number_of_LinphoneCallOutgoingProgress, initial_caller_stats.number_of_LinphoneCallOutgoingProgress + 1) retry = 0 diff --git a/tools/python/unittests/test_message.py b/tools/python/unittests/test_message.py index 129ad0352..523773ca3 100644 --- a/tools/python/unittests/test_message.py +++ b/tools/python/unittests/test_message.py @@ -38,7 +38,7 @@ class TestMessage: direction = 'received' tofrom = 'from' address = msg.from_address - if msg.outgoing: + if msg.is_outgoing: direction = 'sent' tofrom = 'to' address = msg.to_address @@ -64,7 +64,7 @@ class TestMessage: def file_transfer_recv(cls, msg, content, buf): receive_filepath = msg.user_data stats = msg.chat_room.core.user_data().stats - if buf.empty: # Transfer complete + if buf.is_empty: # Transfer complete stats.number_of_LinphoneFileTransferDownloadSuccessful += 1 else: # Store content f = open(receive_filepath, 'ab')