def failIfInside(self, first, second, error, msg=None):
        """Fail if the first object is in the interval given by the second object +- error.
        """
        if (first <= second + error) and (first >= second - error):
            raise self.failureException, \
                  (msg or '%s == %s (+-%s)' % (`first`, `second`, `error`))
Fail if the first object is in the interval given by the second object +- error.
        
recipes/Python/231507_Interval_Test_Case/recipe-231507.py