test: Fix fd_properties printing

This commit is contained in:
Johan Hedberg 2012-11-13 10:48:06 +02:00
parent bd83307026
commit 92056d5dae

View File

@ -75,7 +75,10 @@ class Profile(dbus.service.Object):
fd = fd.take()
print("NewConnection(%s, %d)" % (path, fd))
for key in properties.keys():
print(" %s = %s" % key, properties[key])
if key == "Version" or key == "Features":
print(" %s = 0x%04x" % (key, properties[key]))
else:
print(" %s = %s" % (key, properties[key]))
os.close(fd)