JoyThief¶
Comparison is the thief of joy.
Installation¶
JoyThief can be installed from PyPI with e.g.:
pip install joythief
Usage¶
JoyThief provides a collection of matchers which can be used for testing. These are split across various submodules according to what kinds of things they match. For example:
from joythief.numbers import NaN
def test_my_func_with_no_arguments_returns_nan():
assert my_func() == NaN()