dbusmock.templates.polkitd
polkitd mock template
This creates the expected methods and properties of the main org.freedesktop.PolicyKit1 object. By default, all actions are rejected. You can call AllowUnknown() and SetAllowed() on the mock D-Bus interface to control which actions are allowed.
Attributes
Functions
|
|
|
|
|
|
|
Control whether unknown actions are allowed |
|
Set allowed actions |
|
Makes the CheckAuthorization() method to delay |
|
Makes the CheckAuthorization() method to hang |
|
Makes the CheckAuthorization() method to hang on such actions |
|
Calls all the hanging callbacks |
|
Check if we've hangling calls |
Module Contents
- dbusmock.templates.polkitd.__copyright__ = Multiline-String[source]
Show Value
""" (c) 2013-2021 Canonical Ltd. (c) 2017 - 2022 Martin Pitt <martin@piware.de> """
- dbusmock.templates.polkitd.CheckAuthorization(self, _subject, action_id, _details, _flags, _cancellation_id, ok_cb, _err_cb)[source]
- dbusmock.templates.polkitd.RegisterAuthenticationAgent(_self, _subject, _locale, _object_path)[source]
- dbusmock.templates.polkitd.AllowUnknown(self, default)[source]
Control whether unknown actions are allowed
This controls the return value of CheckAuthorization for actions which were not explicitly allowed by SetAllowed().
- dbusmock.templates.polkitd.SetDelay(self, delay)[source]
Makes the CheckAuthorization() method to delay
- dbusmock.templates.polkitd.SimulateHang(self, hang)[source]
Makes the CheckAuthorization() method to hang