test-connman: Use GetServices() instead GetProperties()
[framework/connectivity/connman.git] / test / test-session
index 6c7fa5c..5694ad0 100755 (executable)
@@ -112,8 +112,11 @@ class SessionApplication(dbus.service.Object):
                del self.sessions[session_name]
 
        def type_convert(self, key, value):
-               if key in [ "AllowedBearers", "RoamingPolicy" ]:
+               if key in [ "AllowedBearers" ]:
                        return value
+               elif key in [ "RoamingPolicy", "ConnectionType" ]:
+                       if len(value) > 0:
+                               return value[0]
                elif key in [ "Priority", "AvoidHandover",
                              "StayConnected", "EmergencyCall" ]:
                        flag = str(value[0]).strip().lower()