dbusmock.templates.logind
systemd logind mock template
This creates the expected methods and properties of the main org.freedesktop.login1.Manager object. You can specify D-Bus property values like “CanSuspend” or the return value of Inhibit() in “parameters”.
Attributes
Functions
|
|
|
|
|
|
|
|
|
Convenience method to add a seat. |
|
Convenience method to add a user. |
|
Convenience method to add a session. |
Module Contents
- dbusmock.templates.logind.__copyright__ = Multiline-String[source]
Show Value
""" (c) 2013 Canonical Ltd. (c) 2017 - 2022 Martin Pitt <martin@piware.de> """
- dbusmock.templates.logind.AddSeat(self, seat)[source]
Convenience method to add a seat.
Return the object path of the new seat.