dbusmock.templates.modemmanager

ModemManager mock template

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

Attributes

__author__

__copyright__

BUS_NAME

MAIN_OBJ

MAIN_IFACE

SYSTEM_BUS

IS_OBJECT_MANAGER

MODEM_IFACE

MODEM_3GPP_IFACE

MODEM_VOICE_IFACE

SIM_IFACE

Classes

MMModemMode

See

MMModemState

See

MMModemPowerState

See

MMModemAccesssTechnology

See

Functions

load(mock, parameters)

AddSimpleModem(self)

Convenience method to add a simple Modem object

Module Contents

dbusmock.templates.modemmanager.__author__ = 'Guido Günther'[source]
dbusmock.templates.modemmanager.BUS_NAME = 'org.freedesktop.ModemManager1'[source]
dbusmock.templates.modemmanager.MAIN_OBJ = '/org/freedesktop/ModemManager1'[source]
dbusmock.templates.modemmanager.MAIN_IFACE = 'org.freedesktop.ModemManager1'[source]
dbusmock.templates.modemmanager.SYSTEM_BUS = True[source]
dbusmock.templates.modemmanager.IS_OBJECT_MANAGER = True[source]
dbusmock.templates.modemmanager.MODEM_IFACE = 'org.freedesktop.ModemManager1.Modem'[source]
dbusmock.templates.modemmanager.MODEM_3GPP_IFACE = 'org.freedesktop.ModemManager1.Modem.Modem3gpp'[source]
dbusmock.templates.modemmanager.MODEM_VOICE_IFACE = 'org.freedesktop.ModemManager1.Modem.Voice'[source]
dbusmock.templates.modemmanager.SIM_IFACE = 'org.freedesktop.ModemManager1.Sim'[source]
class dbusmock.templates.modemmanager.MMModemMode[source]

See https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Flags-and-Enumerations.html#MMModemMode

MODE_NONE = 0[source]
MODE_CS[source]
MODE_2G[source]
MODE_3G[source]
MODE_4G[source]
MODE_5G[source]
class dbusmock.templates.modemmanager.MMModemState[source]

See https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Flags-and-Enumerations.html#MMModemState

STATE_FAILED[source]
STATE_UNKNOWN = 0[source]
STATE_INITIALIZING = 1[source]
STATE_LOCKED = 2[source]
STATE_DISABLED = 3[source]
STATE_DISABLING = 4[source]
STATE_ENABLING = 5[source]
STATE_ENABLED = 6[source]
STATE_SEARCHING = 7[source]
STATE_REGISTERED = 8[source]
STATE_DISCONNECTING = 9[source]
STATE_CONNECTING = 10[source]
STATE_CONNECTED = 11[source]
class dbusmock.templates.modemmanager.MMModemPowerState[source]

See https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Flags-and-Enumerations.html#MMModemPowerState

POWER_STATE_UNKNOWN = 0[source]
POWER_STATE_OFF = 1[source]
POWER_STATE_LOW = 2[source]
POWER_STATE_ON = 3[source]
class dbusmock.templates.modemmanager.MMModemAccesssTechnology[source]

See https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Flags-and-Enumerations.html#MMModemAccessTechnology

ACCESS_TECHNOLOGY_UNKNOWN = 0[source]
ACCESS_TECHNOLOGY_POTS[source]
ACCESS_TECHNOLOGY_GSM[source]
ACCESS_TECHNOLOGY_GSM_COMPACT[source]
ACCESS_TECHNOLOGY_GPRS[source]
ACCESS_TECHNOLOGY_EDGE[source]
ACCESS_TECHNOLOGY_UMTS[source]
ACCESS_TECHNOLOGY_HSDPA[source]
ACCESS_TECHNOLOGY_HSUPA[source]
ACCESS_TECHNOLOGY_HSPA[source]
ACCESS_TECHNOLOGY_HSPA_PLUS[source]
ACCESS_TECHNOLOGY_1XRTT[source]
ACCESS_TECHNOLOGY_EVDO0[source]
ACCESS_TECHNOLOGY_EVDOA[source]
ACCESS_TECHNOLOGY_EVDOB[source]
ACCESS_TECHNOLOGY_LTE[source]
ACCESS_TECHNOLOGY_5GNR[source]
ACCESS_TECHNOLOGY_LTE_CAT_M[source]
ACCESS_TECHNOLOGY_LTE_NB_IOT[source]
dbusmock.templates.modemmanager.load(mock, parameters)[source]
dbusmock.templates.modemmanager.AddSimpleModem(self)[source]

Convenience method to add a simple Modem object

Please note that this does not set any global properties.

Returns the new object path.