Skip to main content

Test fixtures for providing fake versions of various system resources (processes, users, groups, etc.)

Project description

Latest Version Build Status Coverage

A collection of Python fixtures to fake out various system resources (processes, users, groups, etc.).

Each fake resource typically behaves as an “overlay” on the real resource, in that it can be programmed with fake behavior for a set of inputs, but falls back to the real behavior for the rest.

>>> import pwd

>>> from systemfixtures import FakeUsers

>>> users = FakeUsers()
>>> users.setUp()

>>> pwd.getpwnam("foo")
Traceback (most recent call last):
...
KeyError: 'getpwnam(): name not found: foo'

>>> users.add("foo", 123)
>>> info = pwd.getpwnam("foo")
>>> info.pw_uid
123
>>> users.cleanUp()

Support and Documentation

See the online documentation for a complete reference.

Developing and Contributing

See the GitHub project. Bugs can be filed in the issues tracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

systemfixtures-0.6.1.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

systemfixtures-0.6.1-py2.py3-none-any.whl (18.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file systemfixtures-0.6.1.tar.gz.

File metadata

File hashes

Hashes for systemfixtures-0.6.1.tar.gz
Algorithm Hash digest
SHA256 ebc2ee6cf372db1bf21f93ddca26936a6ecae34255a3b67d6ef10e75d5e41018
MD5 b9dc952c381b5945eb6dac77a4667246
BLAKE2b-256 cf99bd3ecb0f74b82727b97c5ffee49608b71e1c8bf099ad2094c1bd4066d9be

See more details on using hashes here.

File details

Details for the file systemfixtures-0.6.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for systemfixtures-0.6.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 18cbb1800a850b2d2f2bd62ad1b84ac948f4c56e8fadcc2b5aefd5bfed0b6d9f
MD5 b7fa8ab9ebca07cb6a69478b699a3ac9
BLAKE2b-256 9fe470e961b5805d911f99ca11863de090f3742f74842f2bb15e8cd341d94b13

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page