summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-02-15 10:19:47 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-02-28 13:17:34 +0200
commit79ec705fa4863090d2ec524fb517903a8306c7ef (patch)
tree99f903552949fd06f7d46c1c7fef6f348f974877 /test
parent1514d2251c724f4e402cfad2b811ff62552d8bbd (diff)
downloadconnman-79ec705fa4863090d2ec524fb517903a8306c7ef.tar.gz
connman-79ec705fa4863090d2ec524fb517903a8306c7ef.tar.bz2
connman-79ec705fa4863090d2ec524fb517903a8306c7ef.zip
test: fixing type conversion bug in test-session
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-session5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test-session b/test/test-session
index 6c7fa5cc..dcb372fc 100755
--- a/test/test-session
+++ b/test/test-session
@@ -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" ]:
+ if len(value) > 0:
+ return value[0]
elif key in [ "Priority", "AvoidHandover",
"StayConnected", "EmergencyCall" ]:
flag = str(value[0]).strip().lower()