--- test/test-join | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/test/test-join b/test/test-join index cdf92a2f1..079f71149 100644 --- a/test/test-join +++ b/test/test-join @@ -232,11 +232,25 @@ class Element(dbus.service.Object): ids.append(id) return ids + def _get_v_models(self): + ids = [] + for model in self.models: + id = model.get_id() + v = model.get_vendor() + if v != VENDOR_ID_NONE: + vendor_id = (v, id) + ids.append(vendor_id) + return ids + def get_properties(self): + vendor_models = self._get_v_models() + sig_models = self._get_sig_models() + return { MESH_ELEMENT_IFACE: { 'Index': dbus.Byte(self.index), - 'Models': dbus.Array(self._get_sig_models(), 'q') + 'Models': dbus.Array(sig_models, 'q'), + 'VendorModels': dbus.Array(vendor_models, '(qq)'), } } -- 2.19.1