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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for systemfixtures-0.4.0.tar.gz
Algorithm Hash digest
SHA256 79523dc507e3dabc6d6fdeb966ec4539d66f42cb81e7be5402d3e2e3bace4aad
MD5 296228a75e4c016f6862c298c340565b
BLAKE2b-256 c9cd0c1e70440fbe9eb4b3e2def2598bebde81e1a9888496c96229a8ffa46105

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