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

Example

Please see the full documentation for more information.

>>> 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()

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.4.1.tar.gz (16.2 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for systemfixtures-0.4.1.tar.gz
Algorithm Hash digest
SHA256 6420b5095fbc675aaffe7b3e6a8fdcb2eb668f23150a4fb5f450c679df2966a8
MD5 f1d30f7dc8195e6a9304b9a0dcf566d7
BLAKE2b-256 56c0917e1395da2adcdadaaf51471d3cc6d76ce766c623fce170548649997c95

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