Пример #1
0
 def setUpClass(cls):
     cls.proc, dbus_address = start_dbus_daemon()
     cls.bus = dbus.bus.BusConnection(dbus_address)
     bus_name = dbus.service.BusName(
         'com.ubuntu.SoftwareCenterDataProvider', cls.bus)
     # get the provider
     cls.provider = SoftwareCenterDataProvider(bus_name)
Пример #2
0
    def setUp(self):
        self.loop = GLib.MainLoop(GLib.main_context_default())

        # setup bus
        dbus_service_name = DBUS_BUS_NAME
        proc, dbus_address = start_dbus_daemon()
        bus = dbus.bus.BusConnection(dbus_address)
        # run the checks
        self.bus_name = dbus.service.BusName(dbus_service_name, bus)
    def setUp(self):
        self.loop = GLib.MainLoop(GLib.main_context_default())

        # setup bus
        dbus_service_name = DBUS_BUS_NAME
        proc, dbus_address = start_dbus_daemon()
        bus = dbus.bus.BusConnection(dbus_address)
        # run the checks
        self.bus_name = dbus.service.BusName(dbus_service_name, bus)
Пример #4
0
 def setUpClass(cls):
     cls.dbus_daemon_proc, dbus_address = start_dbus_daemon()
     cls.bus = dbus.bus.BusConnection(dbus_address)
     cls.data_provider_proc = start_data_provider_daemon(dbus_address)
     time.sleep(1)
 def setUpClass(cls):
     cls.dbus_daemon_proc, dbus_address = start_dbus_daemon()
     cls.bus = dbus.bus.BusConnection(dbus_address)
     cls.data_provider_proc = start_data_provider_daemon(dbus_address)
     time.sleep(1)
 def setUpClass(cls):
     cls.proc, dbus_address = start_dbus_daemon()
     cls.bus = dbus.bus.BusConnection(dbus_address)
     bus_name = dbus.service.BusName("com.ubuntu.SoftwareCenterDataProvider", cls.bus)
     # get the provider
     cls.provider = SoftwareCenterDataProvider(bus_name)