libnm/tests: emit standard properties changed signals from mock objects

This commit is contained in:
Lubomir Rintel
2016-09-19 11:16:00 -04:00
committed by Lubomir Rintel
parent ed21a820a7
commit f234279c94

View File

@@ -113,6 +113,11 @@ class ExportedObj(dbus.service.Object):
def _dbus_property_notify(self, dbus_iface, propname):
prop = self._dbus_property_get(dbus_iface, propname)
self.__dbus_interface_get(dbus_iface).prop_changed_func(self, { propname: prop })
ExportedObj.PropertiesChanged(self, dbus_iface, { propname: prop }, [])
@dbus.service.signal(dbus.PROPERTIES_IFACE, signature='sa{sv}as')
def PropertiesChanged(self, iface, changed, invalidated):
pass
@dbus.service.method(dbus_interface=dbus.PROPERTIES_IFACE, in_signature='s', out_signature='a{sv}')
def GetAll(self, dbus_iface):