Tools for testing processes
Project description
Tools for testing processes.
Usage
from process_tests import ProcessTestCase from process_tests import TestProcess class MyTestCase(ProcessTestCase): def test_simple(self): with TestProcess('mydaemon', 'arg1', 'arg2') as proc: with self.dump_on_error(proc.read): self.wait_for_strings(proc.read, 10, # wait 10 seconds for process to output lines with these strings 'Started', 'Working', 'Done', )
Features
TODO
Examples
https://github.com/ionelmc/python-redis-lock/blob/master/tests/test_redis_lock.py
https://github.com/ionelmc/python-manhole/blob/master/tests/test_manhole.py
https://github.com/ionelmc/python-stampede/blob/master/tests/test_stampede.py
https://github.com/ionelmc/python-remote-pdb/blob/master/tests/test_remote_pdb.py
TODO
tests
docs
Requirements
- OS:
Any
- Runtime:
Python 2.6, 2.7, 3.2, 3.3 or PyPy
Similar projects
TODO
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
process-tests-0.7.1.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for process_tests-0.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63c9ffb679bcf2b8e10f695a46ce3fb41bc0c51c2d95a88302918f06ee6557dc |
|
MD5 | a3ab8338e97ce2ce738eac0b74e8b0b3 |
|
BLAKE2b-256 | 9ab52c5ea921129833042a5b5dcea13f4d9952228161d9cbe20e8805544cc609 |