assertions in __eq__ methods.
>>> from eqassertions import Any, NotNone, IsA, IsTrue, Match
>>> data = {"a": 1, "b": 2}
>>> assert {"a": 1, "b": Any()}
>>> assert {"a": 1, "b": NotNone()}
>>> assert {"a": 1, "b": IsA(int)}
>>> assert {"a": 1, "b": IsTrue()}
>>> assert v == {"a": 1, "b": Match(r"\d")}
>>> assert v == {"a": 1, "b": Match(r"[a-z]")}
Traceback (most recent call last):
...
AssertionError
Release files for eqassertions 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| eqassertions-0.4.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eqassertions-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / eqassertions-0.4.tar.gz
| Download URL | eqassertions-0.4.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
614f50a2aca930ab733d78a5a489e856eccb325897aa632d3348763732a473a5
|
|
BLAKE2b-256 checksum How to use checksums |
7fdc3624632b2e5b251db8ec653790baf311f59305953e9b94017b05ce31d627
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Release files / eqassertions-0.4-py3-none-any.whl
| Download URL | eqassertions-0.4-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bfdefffc49a229a54aab6be56016558ed33d9059e521b1dcc7e4de900cdd98d
|
|
BLAKE2b-256 checksum How to use checksums |
925f36fc4da0e74e2c67eca68a6ccbb7c4de7bfc36ed2a8f132e7298821cef9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|