

def test_system_bus(self):
    t = self.service.getTask(TestDBusSystemTask)
    err = getattr(t, 'acquire_name_error', None)
    self.assertNotNone(err)
    self.logger.debug('err: %s', err)
    self.assertTrue(err.startswith('org.freedesktop.DBus.Error.AccessDenied'))

dataset/ETHPy150Open facebook/sparts/tests/tasks/test_dbus.py TestSystemDBus.test_system_bus/original