SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

python-python-dbusmock rpm build for : openSUSE Leap 42. For other distributions click python-python-dbusmock.

Name : python-python-dbusmock
Version : 0.16.9 Vendor : obs://build_opensuse_org/home:smarty12
Release : 1.2 Date : 2018-05-19 08:35:08
Group : Development/Languages/Python Source RPM : python-python-dbusmock-0.16.9-1.2.src.rpm
Size : 0.41 MB
Packager : (none)
Summary : Mock D-Bus objects
Description :
With this program/Python library 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, logind, 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.

Suppose you want to write tests for gnome-settings-daemon\'s power plugin, or
another program that talks to upower. You want to verify that after the
configured idle time the program suspends the machine. So your program calls
``org.freedesktop.UPower.Suspend()`` on the system D-Bus.

Now, your test suite should not really talk to the actual system D-Bus and the
real upower; a ``make check`` that suspends your machine will not be considered
very friendly by most people, and if you want to run this in continuous
integration test servers or package build environments, chances are that your
process does not have the privilege to suspend, or there is no system bus or
upower to begin with. Likewise, there is no way for an user process to
forcefully set the system/seat idle flag in logind, so your
tests cannot set up the expected test environment on the real daemon.

That\'s where mock objects come into play: They 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.

When using a local system/session bus, you can do unit or integration testing
without needing root privileges or disturbing a running system. The Python API
offers some convenience functions like ``start_session_bus()`` and
``start_system_bus()`` for this, in a ``DBusTestCase`` class (subclass of the
standard ``unittest.TestCase``).

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, and signals) 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.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/smarty12:/Python/RaspberryPi_Leap_42.2/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
python-dbusmock
python-python-dbusmock
python2-python-dbusmock

Requires :
typelib(GLib)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
python-gobject
dbus-1-python
rpmlib(PartialHardlinkSets) <= 4.0.4-1
python(abi) = 2.7
rpmlib(PayloadIsLzma) <= 4.4.6-1
dbus-1-x11


Content of RPM :
/usr/lib/python2.7/site-packages/dbusmock
/usr/lib/python2.7/site-packages/dbusmock/__init__.py
/usr/lib/python2.7/site-packages/dbusmock/__init__.pyc
/usr/lib/python2.7/site-packages/dbusmock/__init__.pyo
/usr/lib/python2.7/site-packages/dbusmock/__main__.py
/usr/lib/python2.7/site-packages/dbusmock/__main__.pyc
/usr/lib/python2.7/site-packages/dbusmock/__main__.pyo
/usr/lib/python2.7/site-packages/dbusmock/mockobject.py
/usr/lib/python2.7/site-packages/dbusmock/mockobject.pyc
/usr/lib/python2.7/site-packages/dbusmock/mockobject.pyo
/usr/lib/python2.7/site-packages/dbusmock/templates
/usr/lib/python2.7/site-packages/dbusmock/templates/__init__.py
/usr/lib/python2.7/site-packages/dbusmock/templates/__init__.pyc
/usr/lib/python2.7/site-packages/dbusmock/templates/__init__.pyo
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez4.py
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez4.pyc
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez4.pyo
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez5-obex.py
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez5-obex.pyc
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez5-obex.pyo
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez5.py
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez5.pyc
/usr/lib/python2.7/site-packages/dbusmock/templates/bluez5.pyo
/usr/lib/python2.7/site-packages/dbusmock/templates/gnome_screensaver.py
/usr/lib/python2.7/site-packages/dbusmock/templates/gnome_screensaver.pyc
/usr/lib/python2.7/site-packages/dbusmock/templates/gnome_screensaver.pyo
/usr/lib/python2.7/site-packages/dbusmock/templates/logind.py
/usr/lib/python2.7/site-packages/dbusmock/templates/logind.pyc
/usr/lib/python2.7/site-packages/dbusmock/templates/logind.pyo
/usr/lib/python2.7/site-packages/dbusmock/templates/networkmanager.py
There is 32 files more in these RPM.

 
ICM