Patch/assert almost equal
self.assertTrue(self.is_the_same(val1, val2)) with the more logical and easier
self.assertAlmostEqual(val1, val2, threshold=1e-12, print_results=False). It does the same checks as before but it is easier now to use it. In addition, the error message when the assertion fails is enhanced to make debugging easier. This means
print_results as argument is kind of obsolete but might be useful in some instances.
I also renamed
After this is merged, please get the latest changes from developer and use this function for testing values that might be a little off due to numerical rounding errors. In addition, even when you do not need this function
assertAlmostEqual please always inherit your TestClasses from
... from basetest import BaseTest ... class SomeTestClass(BaseTest): ...