proto-matcher
Test matchers for Protobuffer in Python.
This is based on MessageDifferencer as well as the EqualsProto googletest matcher.
API
This packages provides the following PyHamcrest matchers:
equals_proto
equals_proto(message: Union[Message, str])
Test the argument equals the given protobuf message.
approximately
approximately(proto_matcher: Matcher[Message],
float_margin: Optional[float] = None,
float_fraction: Optional[float] = None)
Test the argument equals the given protobuf message, while comparing any float field using approximation.
ignoring_field_paths
ignoring_field_paths(field_paths: Set[Tuple[str]],
matcher: _ProtoMatcher)
Test the argument equals the given protobuf message, while ignoring those fields specified in the field paths.
ignoring_repeated_field_ordering
ignoring_repeated_field_ordering(proto_matcher: Matcher[Message])
Test the argument equals the given protobuf message, ignoring the ordering of any repeated field.
partially
partially(proto_matcher: Matcher[Message])
Test the argument partially equals the given protobuf message, i.e. if a field is in the argument but not in the expected message, it's ignored in the comparsion.
Metadata
Release files for proto-matcher 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proto_matcher-0.0.3.tar.gz | 8.0 kB | Without provenance | Details for proto_matcher-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proto_matcher-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for proto_matcher-0.0.3-py3-none-any.whl |
Total release size: 21.8 kB
Release files / proto_matcher-0.0.3.tar.gz
| Download URL | proto_matcher-0.0.3.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afcf486d51d2122b319c4c3ee5fed56cb0e7aa27c406244694280d9a21e88498
|
|
BLAKE2b-256 checksum How to use checksums |
aacf13febd4ec52bf3275715f4b83770b889ea489e86593db5e6cbe5f9400d76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3rc1
|
Release files / proto_matcher-0.0.3-py3-none-any.whl
| Download URL | proto_matcher-0.0.3-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5193bbd722d7654a8205121888521d92223055c33704bf0219d8241944f3eb49
|
|
BLAKE2b-256 checksum How to use checksums |
c1cacb4f6639cc51efe1b21f74148d84eedf18bf76dee3000f0d83265c8c2134
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3rc1
|
Security for proto-matcher 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.