dbusmock.templates.upower_power_profiles_daemon

power-profiles-daemon >= 0.20 mock template

This creates the expected methods and properties of the main org.freedesktop.UPower.PowerProfiles object.

This provides the D-Bus API as of version 0.20.

Attributes

__author__

__copyright__

BUS_NAME

MAIN_OBJ

MAIN_IFACE

SYSTEM_BUS

Functions

hold_profile(self, profile, reason, application_id)

release_profile(self, cookie)

load(mock, parameters)

Module Contents

dbusmock.templates.upower_power_profiles_daemon.__author__ = 'Bastien Nocera'[source]
Show Value
"""
(c) 2021, Red Hat Inc.
(c) 2017 - 2024 Martin Pitt <martin@piware.de>
"""
dbusmock.templates.upower_power_profiles_daemon.BUS_NAME = 'org.freedesktop.UPower.PowerProfiles'[source]
dbusmock.templates.upower_power_profiles_daemon.MAIN_OBJ = '/org/freedesktop/UPower/PowerProfiles'[source]
dbusmock.templates.upower_power_profiles_daemon.MAIN_IFACE = 'org.freedesktop.UPower.PowerProfiles'[source]
dbusmock.templates.upower_power_profiles_daemon.SYSTEM_BUS = True[source]
dbusmock.templates.upower_power_profiles_daemon.hold_profile(self, profile, reason, application_id)[source]
dbusmock.templates.upower_power_profiles_daemon.release_profile(self, cookie)[source]
dbusmock.templates.upower_power_profiles_daemon.load(mock, parameters)[source]