I am dealing with the following problem with unittest2:
assertAlmostEqual(69.88, 69.875, places=2)  # returns True
but
assertAlmostEqual(1.28, 1.275, places=2)  # returns False
I think problem is in the assertAlmostEqual method:
def assertAlmostEqual(self, first, second, places=None, ...):
    if first == second:
        # shortcut
        return
    ...
    if delta is not None:
    ...
    else:
        if places is None:
            places = 7
        if round(abs(second-first), places) == 0:
            return
    ...
    raise self.failureException(msg)
Should it instead be:
if abs(round(second, places) - round(first, places)) == 0
    return
 
     
     
    