How to do assert almost equal
with pytest
for floats without resorting to something like:
assert x - 0.00001 <= y <= x + 0.00001
More specifically it will be useful to know a neat solution for quickly comparing pairs of float, without unpacking them:
assert (1.32, 2.4) == i_return_tuple_of_two_floats()