How to Install and Uninstall python3-dbusmock Package on Kali Linux
Last updated: December 23,2024
1. Install "python3-dbusmock" package
This guide let you learn how to install python3-dbusmock on Kali Linux
$
sudo apt update
Copied
$
sudo apt install
python3-dbusmock
Copied
2. Uninstall "python3-dbusmock" package
Please follow the guidelines below to uninstall python3-dbusmock on Kali Linux:
$
sudo apt remove
python3-dbusmock
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the python3-dbusmock package on Kali Linux
Package: python3-dbusmock
Source: python-dbusmock
Version: 0.31.1-1
Installed-Size: 436
Maintainer: Debian Python Team
Architecture: all
Depends: python3-dbus, python3:any, python3-gi, gir1.2-glib-2.0, dbus-x11
Suggests: python3-pytest
Size: 84492
SHA256: 027f0828d4f615ffc3668a1fba47ae1fdc394838f7846cc045ebd0b1cc6da8a2
SHA1: d9dc6bc003b1a6c31800cfeabeb99e92ad9c759f
MD5sum: b52c44138d17bbd29c52894be3ebe8c4
Description: 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:
Multi-Arch: foreign
Homepage: https://github.com/martinpitt/python-dbusmock/
Section: python
Priority: optional
Filename: pool/main/p/python-dbusmock/python3-dbusmock_0.31.1-1_all.deb
Source: python-dbusmock
Version: 0.31.1-1
Installed-Size: 436
Maintainer: Debian Python Team
Architecture: all
Depends: python3-dbus, python3:any, python3-gi, gir1.2-glib-2.0, dbus-x11
Suggests: python3-pytest
Size: 84492
SHA256: 027f0828d4f615ffc3668a1fba47ae1fdc394838f7846cc045ebd0b1cc6da8a2
SHA1: d9dc6bc003b1a6c31800cfeabeb99e92ad9c759f
MD5sum: b52c44138d17bbd29c52894be3ebe8c4
Description: 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:
Multi-Arch: foreign
Homepage: https://github.com/martinpitt/python-dbusmock/
Section: python
Priority: optional
Filename: pool/main/p/python-dbusmock/python3-dbusmock_0.31.1-1_all.deb