Пример #1
0
    def tearDown(self):
        bus = dbus.SessionBus()
        self.failUnless(bus.name_has_owner("org.mpris.quodlibet"))
        self.m.disabled()
        self.failIf(bus.name_has_owner("org.mpris.quodlibet"))

        destroy_fake_app()
        config.quit()
        del self.m
Пример #2
0
    def tearDown(self):
        bus = dbus.SessionBus()
        self.failUnless(bus.name_has_owner("org.mpris.quodlibet"))
        self.m.disabled()
        self.failIf(bus.name_has_owner("org.mpris.quodlibet"))

        destroy_fake_app()
        config.quit()
        del self.m
Пример #3
0
    def tearDown(self):
        bus = dbus.SessionBus()
        self.failUnless(bus.name_has_owner(self.BUS_NAME))
        self.m.disabled()
        self.failIf(bus.name_has_owner(self.BUS_NAME))

        destroy_fake_app()
        config.quit()
        del self.m
Пример #4
0
    def tearDown(self):
        bus = dbus.SessionBus()
        self.failUnless(
            bus.name_has_owner("org.gnome.UPnP.MediaServer2.QuodLibet"))
        self.m.disabled()
        self.failIf(
            bus.name_has_owner("org.gnome.UPnP.MediaServer2.QuodLibet"))
        del self.m

        destroy_fake_app()
        config.quit()
Пример #5
0
    def tearDown(self):
        bus = dbus.SessionBus()
        self.failUnless(
            bus.name_has_owner("org.gnome.UPnP.MediaServer2.QuodLibet"))
        self.m.disabled()
        self.failIf(
            bus.name_has_owner("org.gnome.UPnP.MediaServer2.QuodLibet"))
        del self.m

        destroy_fake_app()
        config.quit()
Пример #6
0
 def tearDown(self):
     destroy_fake_app()
     config.quit()
Пример #7
0
 def tearDown(self):
     destroy_fake_app()
     config.quit()
     del self.plugin
Пример #8
0
def fake_app():
    config.init()
    init_fake_app()
    yield app
    destroy_fake_app()
    config.quit()