Use assertAlmostEqual (#1054)

Rounding and then comparing could lead to some surprising sensitivity. This
uses a known-good approximate comparison.