python-dbusmock_0.16.3-1_all.deb


Advertisement

Description

python-dbusmock - mock D-Bus objects for tests (Python 2)

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe amd64
Package name: python-dbusmock
Package version: 0.16.3
Package release: 1
Package architecture: all
Package type: deb
Installed size: 345 B
Download size: 54.48 KB
Official Mirror: archive.ubuntu.com
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.

Alternatives

    Download

    Source package: python-dbusmock

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install python-dbusmock deb package:
      # sudo apt-get install python-dbusmock

    Files

    • /usr/lib/python2.7/dist-packages/dbusmock/__init__.py
    • /usr/lib/python2.7/dist-packages/dbusmock/__main__.py
    • /usr/lib/python2.7/dist-packages/dbusmock/mockobject.py
    • /usr/lib/python2.7/dist-packages/dbusmock/testcase.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/__init__.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/bluez4.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/bluez5-obex.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/bluez5.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/gnome_screensaver.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/logind.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/networkmanager.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/notification_daemon.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/ofono.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/polkitd.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/timedated.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/upower.py
    • /usr/lib/python2.7/dist-packages/dbusmock/templates/urfkill.py
    • /usr/lib/python2.7/dist-packages/python_dbusmock-0.16.3.egg-info/PKG-INFO
    • /usr/lib/python2.7/dist-packages/python_dbusmock-0.16.3.egg-info/dependency_links.txt
    • /usr/lib/python2.7/dist-packages/python_dbusmock-0.16.3.egg-info/top_level.txt
    • /usr/share/doc/python-dbusmock/README.rst.gz
    • /usr/share/doc/python-dbusmock/changelog.Debian.gz
    • /usr/share/doc/python-dbusmock/copyright
    • /usr/share/doc/python-dbusmock/examples/test_api.py
    • /usr/share/doc/python-dbusmock/examples/test_bluez4.py
    • /usr/share/doc/python-dbusmock/examples/test_bluez5.py
    • /usr/share/doc/python-dbusmock/examples/test_cli.py
    • /usr/share/doc/python-dbusmock/examples/test_code.py
    • /usr/share/doc/python-dbusmock/examples/test_consolekit.py
    • /usr/share/doc/python-dbusmock/examples/test_gnome_screensaver.py
    • /usr/share/doc/python-dbusmock/examples/test_logind.py
    • /usr/share/doc/python-dbusmock/examples/test_networkmanager.py
    • /usr/share/doc/python-dbusmock/examples/test_notification_daemon.py
    • /usr/share/doc/python-dbusmock/examples/test_ofono.py
    • /usr/share/doc/python-dbusmock/examples/test_polkitd.py
    • /usr/share/doc/python-dbusmock/examples/test_timedated.py
    • /usr/share/doc/python-dbusmock/examples/test_upower.py
    • /usr/share/doc/python-dbusmock/examples/test_urfkill.py

    Changelog

    2015-12-14 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.16.3-1) unstable; urgency=medium * New upstream release. * Update obsolete Homepage: field.

    2015-12-09 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.16.2-1) unstable; urgency=medium * New upstream release.

    2015-10-22 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.16.1-1) unstable; urgency=medium * New upstream release.

    2015-10-08 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.16-1) unstable; urgency=medium * New upstream release.

    2015-09-16 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.15.3-1) unstable; urgency=medium * New upstream release.

    2015-06-11 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.15.2-1) unstable; urgency=medium * New upstream release.

    2015-05-12 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.15.1-1) unstable; urgency=medium * New upstream release. - SECURITY FIX: When loading a template from an arbitrary file through the AddTemplate() D-Bus method call or DBusTestCase.spawn_server_template() Python method, don't create or use Python's *.pyc cached files. By tricking a user into loading a template from a world-writable directory like /tmp, an attacker could run arbitrary code with the user's privileges by putting a crafted .pyc file into that directory. Note that this is highly unlikely to actually appear in practice as custom dbusmock templates are usually shipped in project directories, not directly in world-writable directories. (LP: #1453815, CVE-2015-1326)

    2015-05-08 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.15-1) unstable; urgency=medium * New upstream release.

    2015-04-27 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.14-2) unstable; urgency=medium * debian/control: Drop obsolete XS-Testsuite: field, dpkg adds this automatically now.

    2015-03-30 - Martin Pitt <mpitt@debian.org> python-dbusmock (0.14-1) experimental; urgency=medium * New upstream release.

    Advertisement
    Advertisement