dbusmock.templates.urfkill

urfkill mock template

This creates the expected methods and properties of the main urfkill object, but no devices. You can specify any property such as urfkill in “parameters”.

Attributes

__author__

__copyright__

SYSTEM_BUS

BUS_NAME

MAIN_OBJ

MAIN_IFACE

individual_objects

type2objectname

KS_NOTAVAILABLE

KS_UNBLOCKED

KS_SOFTBLOCKED

KS_HARDBLOCKED

Functions

toggle_flight_mode(self, new_block_state)

block(self, index, should_block)

load(mock, parameters)

Module Contents

dbusmock.templates.urfkill.__author__ = 'Jussi Pakkanen'[source]
Show Value
"""
(C) 2015 Canonical ltd
(c) 2017 - 2022 Martin Pitt <martin@piware.de>
"""
dbusmock.templates.urfkill.SYSTEM_BUS = True[source]
dbusmock.templates.urfkill.BUS_NAME = 'org.freedesktop.URfkill'[source]
dbusmock.templates.urfkill.MAIN_OBJ = '/org/freedesktop/URfkill'[source]
dbusmock.templates.urfkill.MAIN_IFACE = 'org.freedesktop.URfkill'[source]
dbusmock.templates.urfkill.individual_objects = ['BLUETOOTH', 'FM', 'GPS', 'NFC', 'UWB', 'WIMAX', 'WLAN', 'WWAN'][source]
dbusmock.templates.urfkill.type2objectname[source]
dbusmock.templates.urfkill.KS_NOTAVAILABLE[source]
dbusmock.templates.urfkill.KS_UNBLOCKED = 0[source]
dbusmock.templates.urfkill.KS_SOFTBLOCKED = 1[source]
dbusmock.templates.urfkill.KS_HARDBLOCKED = 2[source]
dbusmock.templates.urfkill.toggle_flight_mode(self, new_block_state)[source]
dbusmock.templates.urfkill.block(self, index, should_block)[source]
dbusmock.templates.urfkill.load(mock, parameters)[source]