def setUp(self):
        """Set up the services module."""
        # Set up the services module.
        self.services_module = ServicesModule()
        self.services_interface = ServicesInterface(self.services_module)

        # Connect to the properties changed signal.
        self.callback = Mock()
        self.services_interface.PropertiesChanged.connect(self.callback)
Example #2
0
 def publish(self):
     """Publish the module."""
     DBus.publish_object(SERVICES.object_path, ServicesInterface(self))
     DBus.register_service(SERVICES.service_name)
Example #3
0
 def setUp(self):
     """Set up the services module."""
     self.services_module = ServicesService()
     self.services_interface = ServicesInterface(self.services_module)
Example #4
0
 def publish(self):
     """Publish the module."""
     TaskContainer.set_namespace(SERVICES.namespace)
     DBus.publish_object(SERVICES.object_path, ServicesInterface(self))
     DBus.register_service(SERVICES.service_name)