How to Install and Uninstall python3-dbusmock Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 13,2024

1. Install "python3-dbusmock" package

This guide let you learn how to install python3-dbusmock on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-dbusmock

2. Uninstall "python3-dbusmock" package

Learn how to uninstall python3-dbusmock on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-dbusmock $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-dbusmock package on Ubuntu 21.10 (Impish Indri)

Package: python3-dbusmock
Architecture: all
Version: 0.23.1-2
Multi-Arch: foreign
Priority: optional
Section: universe/python
Source: python-dbusmock
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 384
Depends: python3:any, python3-dbus, python3-gi, gir1.2-glib-2.0 (>= 1.32), dbus-x11
Filename: pool/universe/p/python-dbusmock/python3-dbusmock_0.23.1-2_all.deb
Size: 70982
MD5sum: 3fe1205ab54e3ce51cd0716562ba167f
SHA1: e0d605b027040336e5c6668b63e45b0222c16045
SHA256: e3541ce29d12e4b2cd8c9be83c5cb94ce0814e2f20b6d39cc7e916fced264c28
SHA512: 297eeaa4fa00eebf055bfe87f05f2d6829abb104bdc3588e3a39a09829f7b646e54d8f011b51c6d0abe8d10a3402a71b86cd80abb92af637ab7bb9c1f30de85a
Homepage: https://github.com/martinpitt/python-dbusmock/
Description-en: mock D-Bus objects for tests
With python-dbusmock you can easily create mock objects on D-Bus. This is
useful for writing tests for software which talks to D-Bus services such as
upower, systemd, ConsoleKit, gnome-session or others, and it is hard (or
impossible without root privileges) to set the state of the real services to
what you expect in your tests.
.
Mock objects look like the real API (or at least the parts that you actually
need), but they do not actually do anything (or only some action that you
specify yourself). You can configure their state, behaviour and responses as
you like in your test, without making any assumptions about the real system
status.
.
You can use this with any programming language, as you can run the mocker as a
normal program. The actual setup of the mock (adding objects, methods,
properties, etc.) all happen via D-Bus methods on the
org.freedesktop.DBus.Mock interface. You just don't have the convenience
D-Bus launch API that way.
Description-md5: 48d6276267bd1d71ed51b7d2c8ce5f82