Skip to main content

Fuzzy Mock objects for testing

Project description

https://badge.fury.io/py/equals.svg https://readthedocs.org/projects/equals/badge/?version=latest https://coveralls.io/repos/github/smartfastlabs/equals/badge.svg?branch=master

tl;dr Equals is a stricter version of Mock.Any.

Equals allows you to assert certain equality constraints between python objects during testing. There are times where we don’t want to assert absolute equality, e.g. we need to ensure two lists have the same elements, but don’t care about order. This was designed specifically for usage with Mock and dobles.

Documentation

Documentation is available at http://equals.readthedocs.org/en/latest/.

Installation:

>> pip install equals

Development

Source code is available at https://github.com/smartfastlabs/equals.

To install the dependencies on a fresh clone of the repository, run make bootstrap.

To run the test suite, run make test.

To build the documentation locally, run make docs.

License

MIT: http://opensource.org/licenses/MIT

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

equals-3.1.0.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

equals-3.1.0-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

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