diff --git a/tools/python/unittests/linphonetester.py b/tools/python/unittests/linphonetester.py index 04e60b765..2b2ec3253 100644 --- a/tools/python/unittests/linphonetester.py +++ b/tools/python/unittests/linphonetester.py @@ -205,8 +205,8 @@ class CoreManager: @classmethod def call_state_changed(cls, lc, call, state, msg): manager = lc.user_data - to_address = call.call_log.to.as_string() - #from_address = call.call_log.from.as_string() + to_address = call.call_log.to_address.as_string() + from_address = call.call_log.from_address.as_string() from_address = '' direction = "Outgoing" if call.call_log.dir == linphone.CallDir.CallIncoming: diff --git a/tools/python/unittests/test_call.py b/tools/python/unittests/test_call.py index 0bc8902de..1c299413d 100644 --- a/tools/python/unittests/test_call.py +++ b/tools/python/unittests/test_call.py @@ -24,5 +24,5 @@ class TestCall: assert_equals(out_call.reason, linphone.Reason.ReasonBusy) if len(pauline.lc.call_logs) > 0: out_call_log = pauline.lc.call_logs[0] - assert out_call_log != None + assert out_call_log is not None assert_equals(out_call_log.status, linphone.CallStatus.CallAborted)