tests: rework handling of D-Bus properties in NetworkManager stub service
Instead of registering a __get_props() function which constructs the entire hash anew each time, register a props dictionary. This dictionary is used as cache for the properies. In most cases, we don't need to additionally cache the properties outside the props dictionary. Also, add _dbus_property_set() which sets the property and emits the notification. Also, cleanup the property names by giving them a PRP_ prefix.
This commit is contained in: