assertAlmostEqual in Python unit-test for collections of floats
assertAlmostEqual in Python unit-test for collections of floats Question: The assertAlmostEqual(x, y) method in Python’s unit testing framework tests whether x and y are approximately equal assuming they are floats. The problem with assertAlmostEqual() is that it only works on floats. I’m looking for a method like assertAlmostEqual() which works on lists of floats, sets …