Pattern matching helper classes designed to be similar to Jest expect matchers, but modified to suit a Pythonic style of programming.
Project description
Jestspectation
Pattern matching helper classes designed to be similar to Jest's expect matchers, but modified to suit a Pythonic style of programming.
Basic Usage
import jestspectation as expect
assert {
"a": 1,
"b": 2,
"c": 3,
} == {
"a": 1,
"b": expect.Any(int),
"c": expect.FloatApprox(2.5, magnitude=0.5)
}
Installation
pip install jestspectation
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
Jestspectation-0.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for Jestspectation-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ee970a15ed49a46af48254e8c6b3a806085cf3bff94b58dc462be9794e4c44a |
|
MD5 | 7d60d0091187a1bacf4895b78bd1b84f |
|
BLAKE2b-256 | 2ac4d44ec8e745b4771b82b6a91f5806259307a702428295304c5f2040f0fc89 |