mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 00:29:21 +00:00
Fix unittests for Python 3.
This commit is contained in:
parent
b20343c440
commit
c4feeb97b8
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue