How to do assert almost equal with py.test for floats without resorting to something like:
assert almost equal
assert x - 0.00001 <= y <= x + 0.00001 <
assert x - 0.00001 <= y <= x + 0.00001
If you have access to NumPy it has great functions for floating point comparison that already do pairwise comparison with numpy.testing.
Then you can do something like:
numpy.testing.assert_allclose(i_return_tuple_of_two_floats(), (1.32, 2.4))