Test fixtures for providing fake versions of various system resources (processes, users, groups, etc.)
Project description
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
Release history Release notifications | RSS feed
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)
File details
Details for the file systemfixtures-0.4.0.tar.gz
.
File metadata
- Download URL: systemfixtures-0.4.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79523dc507e3dabc6d6fdeb966ec4539d66f42cb81e7be5402d3e2e3bace4aad |
|
MD5 | 296228a75e4c016f6862c298c340565b |
|
BLAKE2b-256 | c9cd0c1e70440fbe9eb4b3e2def2598bebde81e1a9888496c96229a8ffa46105 |