How to Install and Uninstall python3-dbusmock Package on Ubuntu 16.04 LTS (Xenial Xerus)
Last updated: December 23,2024
1. Install "python3-dbusmock" package
Here is a brief guide to show you how to install python3-dbusmock on Ubuntu 16.04 LTS (Xenial Xerus)
$
sudo apt update
Copied
$
sudo apt install
python3-dbusmock
Copied
2. Uninstall "python3-dbusmock" package
This guide let you learn how to uninstall python3-dbusmock on Ubuntu 16.04 LTS (Xenial Xerus):
$
sudo apt remove
python3-dbusmock
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the python3-dbusmock package on Ubuntu 16.04 LTS (Xenial Xerus)
Package: python3-dbusmock
Priority: optional
Section: universe/python
Installed-Size: 345
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Source: python-dbusmock
Version: 0.16.3-1
Depends: python3:any (>= 3.3.2-2~), python3-dbus, python3-gi, gir1.2-glib-2.0 (>= 1.32), dbus-x11
Filename: pool/universe/p/python-dbusmock/python3-dbusmock_0.16.3-1_all.deb
Size: 55878
MD5sum: 499fb0379cfdb0a492dc54a5cd7c2daa
SHA1: 7f4f6d692a4d98e9dbdb103259ba7ded2ff4b471
SHA256: 1fd6edc8443698bbd43a9a3ce334bcb587bdb766fad2c6d42cf97ab207408eed
Description-en: mock D-Bus objects for tests (Python 3)
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: 3559901ef85e98d3f1852eaa0250da7d
Multi-Arch: foreign
Homepage: https://github.com/martinpitt/python-dbusmock/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Priority: optional
Section: universe/python
Installed-Size: 345
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Source: python-dbusmock
Version: 0.16.3-1
Depends: python3:any (>= 3.3.2-2~), python3-dbus, python3-gi, gir1.2-glib-2.0 (>= 1.32), dbus-x11
Filename: pool/universe/p/python-dbusmock/python3-dbusmock_0.16.3-1_all.deb
Size: 55878
MD5sum: 499fb0379cfdb0a492dc54a5cd7c2daa
SHA1: 7f4f6d692a4d98e9dbdb103259ba7ded2ff4b471
SHA256: 1fd6edc8443698bbd43a9a3ce334bcb587bdb766fad2c6d42cf97ab207408eed
Description-en: mock D-Bus objects for tests (Python 3)
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: 3559901ef85e98d3f1852eaa0250da7d
Multi-Arch: foreign
Homepage: https://github.com/martinpitt/python-dbusmock/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu