def test_start_stop_dummy_backend(self):
     bus = get_dbus_bus()
     system_bus = dbus.SystemBus()
     session_bus = dbus.SessionBus()
     self.assertNotEqual(bus, system_bus)
     self.assertNotEqual(bus, session_bus)
     # get names and ...
     names = bus.list_names()
     # ensure we have the  following:
     #  org.freedesktop.DBus,
     #  org.freedesktop.PolicyKit1
     #  org.debian.apt
     # (and :1.0, :1.1, :1.2)
     self.assertEqual(len(names), 6)
예제 #2
0
 def test_start_stop_dummy_backend(self):
     bus = get_dbus_bus()
     system_bus = dbus.SystemBus()
     session_bus = dbus.SessionBus()
     self.assertNotEqual(bus, system_bus)
     self.assertNotEqual(bus, session_bus)
     # get names and ...
     names = bus.list_names()
     # ensure we have the  following:
     #  org.freedesktop.DBus, 
     #  org.freedesktop.PolicyKit1
     #  org.debian.apt
     # (and :1.0, :1.1, :1.2)
     self.assertEqual(len(names), 6)
예제 #3
0
 def test_start_stop_dummy_backend(self):
     bus = get_dbus_bus()
     system_bus = dbus.SystemBus()
     session_bus = dbus.SessionBus()
     self.assertNotEqual(bus, system_bus)
     self.assertNotEqual(bus, session_bus)
     # get names and ...
     names = bus.list_names()
     # ensure we have the  following:
     #  org.freedesktop.DBus,
     #  org.freedesktop.PolicyKit1
     #  org.debian.apt
     # (and :1.0, :1.1)
     for name in ["org.freedesktop.PolicyKit1", "org.debian.apt"]:
         self.assertTrue(name in names, "Expected name '%s' not in '%s'" % (name, names))
예제 #4
0
 def test_start_stop_dummy_backend(self):
     bus = get_dbus_bus()
     system_bus = dbus.SystemBus()
     session_bus = dbus.SessionBus()
     self.assertNotEqual(bus, system_bus)
     self.assertNotEqual(bus, session_bus)
     # get names and ...
     names = bus.list_names()
     # ensure we have the  following:
     #  org.freedesktop.DBus,
     #  org.freedesktop.PolicyKit1
     #  org.debian.apt
     # (and :1.0, :1.1)
     for name in ["org.freedesktop.PolicyKit1", "org.debian.apt"]:
         self.assertTrue(name in names,
                         "Expected name '%s' not in '%s'" % (name, names))