Trite support for code predicates, presently just the context manager post_condition.
Interested people should also see the icontract module.
Function post_condition(*predicates)
Context manager to test post conditions.
Predicates may either be a tuple of (description,callable)
or a plain callable.
For the latter the description is taken from callable.__doc__
or str(callable).
Raises AssertionError if any predicates are false.
Release files for cs.predicate 20190221
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs.predicate-20190221.tar.gz | 2.1 kB | Details |
Release files / cs.predicate-20190221.tar.gz
| Download URL | cs.predicate-20190221.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e86362ea0d97285e9bdb6b266c1e5d14d34236589707846ada6f401ef9faaa9
|
|
BLAKE2b-256 checksum How to use checksums |
b0516be442477e7948aa898f01b2431d2107735a9f522c071c14165fe954ee19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.8
|