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.1.tar.gz
(16.2 kB
view details)
File details
Details for the file systemfixtures-0.4.1.tar.gz
.
File metadata
- Download URL: systemfixtures-0.4.1.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6420b5095fbc675aaffe7b3e6a8fdcb2eb668f23150a4fb5f450c679df2966a8 |
|
MD5 | f1d30f7dc8195e6a9304b9a0dcf566d7 |
|
BLAKE2b-256 | 56c0917e1395da2adcdadaaf51471d3cc6d76ce766c623fce170548649997c95 |