Skip to main content

Predicate-based equivalence testing

Project description

predeq

PredEq is a utility library for testing objects using an equivalence predicate. At its core, the predeq(predicate) is an object which tests equal to X if predicate(X) returns True.

def test_my_api_returns_error():
    response = get_reponse(...)
    assert response == {
        'result': 'error',
        'message': predeq(lambda msg: isinstance(msg, str)),
    }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

predeq-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

predeq-0.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file predeq-0.0.1.tar.gz.

File metadata

  • Download URL: predeq-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for predeq-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3f40cde98306cf8833a41c1583e298a249fa956ffdaa4f8c31a5210a01b3ed01
MD5 2602963a8bfda4cee61d09864b13603e
BLAKE2b-256 b474d3bb4deaa9ca0d5ddd9d8dd9c59f1605adea8f868c107b716541aeafb682

See more details on using hashes here.

File details

Details for the file predeq-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: predeq-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for predeq-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35433ca33f075d4a2da5f99a4140623b0774bfcf14f16556dcd3d81a318e8b49
MD5 da5d27607f7ff318724f18e9aea55011
BLAKE2b-256 917e0a7b6ee3daf0e641d1fac870747976ba82d30394def113ae14681ad5e627

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page