Raise an assertion if two objects are not equal up to desired tolerance.
This is a Quantity-aware version of numpy.testing.assert_allclose().