Hypothesis is, of course, a library for writing tests.
But from an implementation point of view this is hardly noticeable. Really it’s a library for constructing and exploring data and using it to prove or disprove hypotheses about it. It then has a small testing library built on top of it.
It’s far more widely used as a testing library, and that’s really where the focus of its development lies, but with the find function you can use it just as well to explore your data interactively.
In this article we’ll go through an example of doing this, by using it to take a brief look at one of my other favourite subjects: Voting systems.
Read more...