Anne Mulhern

Anne Mulhern's contributions

Article Thumbnail
Article

The Hypothesis Testing Library for Python: An Introduction

Anne Mulhern

Hypothesis is a Python library for creating tests which are simple to write and powerful when run, finding cases in your code you wouldn't have thought to look for. It is stable, powerful and easy to add to an existing test suite. It works by letting you write tests that assert that something should be true for every case, not just the ones you happen to think of. Think of a normal unit test as being something like the following...