Commit c4feeb97 authored by Ghislain MARY's avatar Ghislain MARY

Fix unittests for Python 3.

parent b20343c4
......@@ -47,7 +47,6 @@ def create_address(domain):
domain = test_route
addr.domain = domain
assert_equals(addr.domain, domain)
addr.display_name = None
addr.display_name = "Mr Tester"
assert_equals(addr.display_name, "Mr Tester")
return addr
......
......@@ -183,7 +183,10 @@ class TestRegister:
def test_transport_change(self):
cm = CoreManager('multi_account_rc', True)
number_of_udp_proxies = reduce(lambda x, y: x + int(y.transport == "udp"), cm.lc.proxy_config_list, 0)
number_of_udp_proxies = 0
for p in cm.lc.proxy_config_list:
if p.transport == "udp":
number_of_udp_proxies += 1
total_number_of_proxies = len(cm.lc.proxy_config_list)
register_ok = cm.stats.number_of_LinphoneRegistrationOk
# Keep only UDP
......
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