def setUp(self): """Set up the module.""" self.firewall_module = FirewallModule() self.firewall_interface = FirewallInterface(self.firewall_module) # Connect to the properties changed signal. self.callback = Mock() self.firewall_interface.PropertiesChanged.connect(self.callback)
def publish(self): """Publish the module.""" DBus.publish_object(FIREWALL.object_path, FirewallInterface(self))