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

Commit f3a6b309 authored by David Duarte's avatar David Duarte Committed by Gerrit Code Review
Browse files

Merge "PandoraServer: Fix sdp test for movable service"

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

        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"