Commit 66e40d83 authored by Ghislain MARY's avatar Ghislain MARY

Fix Python unit tests.

parent 467ec300
......@@ -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
......
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment