Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d6778f0 authored by David Duarte's avatar David Duarte Committed by Automerger Merge Worker
Browse files

Merge "PandoraServer: Fix sdp test for movable service" am: f3a6b309 am: 64226083

parents 8aa7f0f0 64226083
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -116,9 +116,15 @@ class SDPProxy(ProfileProxy):
        optional_services = [
        optional_services = [
            "Android Auto Compatibility",
            "Android Auto Compatibility",
        ]
        ]
        movable_services = [
            "Message Access Server",
        ]
        # yapf: enable
        # yapf: enable


        optional_not_present = lambda service: service in optional_services and service not in service_names
        optional_not_present = lambda service: service in optional_services and service not in service_names


        test.assertEqual(service_names, list(filterfalse(optional_not_present, expected_services)))
        expected_services_sorted = sorted(expected_services, key=lambda key: key in movable_services)
        service_names_sorted = sorted(service_names, key=lambda key: key in movable_services)

        test.assertEqual(service_names_sorted, list(filterfalse(optional_not_present, expected_services_sorted)))
        return "OK"
        return "OK"