PyDocs

Nav

Development Tools

TestCase.assertNotAlmostEqual

  • TestCase.assertNotAlmostEqual(first, second, places=7, msg=None, delta=None)
Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero, or by comparing that the
difference between the two objects is less than the given delta.

Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most significant digit).

Objects that are equal automatically fail.
Changed in 3.2
  • 3.2: assertAlmostEqual() automatically considers almost equal objects that compare equal. assertNotAlmostEqual() automatically fails if the objects compare equal. Added the delta keyword argument.
0 Examples
No examples for unittest/TestCase.assertNotAlmostEqual.
See Also
No see-alsos for unittest/TestCase.assertNotAlmostEqual
0 Notes
No notes for TestCase.assertNotAlmostEqual