summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-07-14 15:42:37 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-07-14 15:42:37 +0300
commite3199baab8680195ec4f37fe6ba2dcb5c5114ec7 (patch)
treeab67e449748fb123c8cd7a3e1db9dcc598af6d85 /test
parent1040ee7f37a19f72eccc13a339fa15dda9c71ea7 (diff)
downloadbluez-e3199baab8680195ec4f37fe6ba2dcb5c5114ec7.tar.gz
test/example-gatt-server: Fix error on Property.GetAll
get_properties is a method not a dictionary which cause the following error: TypeError: 'method' object is not subscriptable
Diffstat (limited to 'test')
-rwxr-xr-xtest/example-gatt-server6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/example-gatt-server b/test/example-gatt-server
index 71aeb1bcd..84905f3d0 100755
--- a/test/example-gatt-server
+++ b/test/example-gatt-server
@@ -117,7 +117,7 @@ class Service(dbus.service.Object):
if interface != GATT_SERVICE_IFACE:
raise InvalidArgsException()
- return self.get_properties[GATT_SERVICE_IFACE]
+ return self.get_properties()[GATT_SERVICE_IFACE]
class Characteristic(dbus.service.Object):
@@ -164,7 +164,7 @@ class Characteristic(dbus.service.Object):
if interface != GATT_CHRC_IFACE:
raise InvalidArgsException()
- return self.get_properties[GATT_CHRC_IFACE]
+ return self.get_properties()[GATT_CHRC_IFACE]
@dbus.service.method(GATT_CHRC_IFACE,
in_signature='a{sv}',
@@ -222,7 +222,7 @@ class Descriptor(dbus.service.Object):
if interface != GATT_DESC_IFACE:
raise InvalidArgsException()
- return self.get_properties[GATT_CHRC_IFACE]
+ return self.get_properties()[GATT_CHRC_IFACE]
@dbus.service.method(GATT_DESC_IFACE,
in_signature='a{sv}',