Skip to main content

A library for property based testing

Project description

Hypothesis is a library for testing your Python code against a much larger range of examples than you would ever want to write by hand. It’s based on the Haskell library, Quickcheck, and is designed to integrate seamlessly into your existing Python unit testing work flow.

Hypothesis is both extremely practical and also advances the state of the art of unit testing by some way. It’s easy to use, stable, and extremely powerful. If you’re not using Hypothesis to test your project then you’re missing out.

Versions supported

Hypothesis officially supports CPython 2.7, 3.4 and 3.5, as well as PyPy. Other versions are not supported. Patches for such versions are accepted as long as they don’t impose a maintenance burden. However, keep in mind that this does not automatically mean that future releases of Hypothesis will continue to work on those versions.

See Issue #286 for more information.

Ongoing Development

Development on Hypothesis is a mix of community provided and sponsored. If you wish to contribute, either financially or through code, you can read more about the process in the documentation.

Project details

Release history Release notifications

This version


Download files

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

Files for hypothesis, version 3.1.0
Filename, size File type Python version Upload date Hashes
Filename, size hypothesis-3.1.0.tar.gz (69.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page