Beispiel #1
0
    def setUp(self):
        self.maxDiff = None
        self.module = DeviceTreeModule()
        self.interface = DeviceTreeInterface(self.module)

        # Set the storage.
        self.module.on_storage_changed(create_storage())
Beispiel #2
0
 def for_publication(self):
     """Return a DBus representation."""
     return DeviceTreeInterface(self)
    def setUp(self):
        self.module = DeviceTreeModule()
        self.interface = DeviceTreeInterface(self.module)

        # Set the storage.
        self.module.on_storage_reset(create_storage())
Beispiel #4
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(DEVICE_TREE.object_path, DeviceTreeInterface(self))