python-dbusmock_0.16.3-1_all.deb


Advertisement

Description

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

Property Value
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

Package Version Architecture Repository
python-dbusmock_0.16.3-1_all.deb 0.16.3 all Ubuntu Universe
python-dbusmock - - -

Requires

Name Value
dbus-x11 -
gir1.2-glib-2.0 >= 1.32
python-dbus -
python-gi -
python:any >= 2.7.5-5~
python:any << 2.8

Download

Type URL
Binary Package python-dbusmock_0.16.3-1_all.deb
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

Path
/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.

See Also

Package Description
python-dcmstack_0.6.2+git33-gb43919a.1-1_all.deb DICOM to Nifti conversion
python-dcos_0.2.0-2_all.deb Datacenter Operating System (DCOS) CLI - Python 2.7
python-ddt-doc_1.0.1-1_all.deb Data-Driven/Decorated Tests - doc
python-ddt_1.0.1-1_all.deb Data-Driven/Decorated Tests - Python 2.x
python-deap_1.0.1-4_all.deb Distributed Evolutionary Algorithms in Python
python-debian_0.1.27ubuntu2_all.deb Python modules to work with Debian-related data formats
python-debianbts_2.6.0_all.deb Python interface to Debian's Bug Tracking System
python-debiancontributors_0.7.5-2_all.deb Manage submissions to contributors.debian.org
python-debtagshw_2.0.1ubuntu6_all.deb Match debtags hardware:: tags against the actual hardware
python-decoratortools_1.8-3_all.deb transitional dummy package for python-peak.util.decorators
python-defer_1.0.6-2build1_all.deb Small framework for asynchronous programming (Python 2)
python-defusedxml_0.4.1-2build1_all.deb XML bomb protection for Python stdlib modules (for Python 2)
python-deltarpm_3.6+dfsg-1build4_amd64.deb Python bindings for deltarpm
python-demgengeo_1.2-1build1_amd64.deb DEMGenGeo is a library for creating geometry files
python-demjson_2.2.4-1_all.deb encoder, decoder, and lint/validator for JSON in Python
Advertisement
Advertisement