Kaydet (Commit) 7a26cb97 authored tarafından Michael Foord's avatar Michael Foord

Updating unittest docs to reflect change in…

Updating unittest docs to reflect change in unittest.TestCase.assert[Not]AlmostEqual signature change
üst f74ed2ea
......@@ -818,8 +818,8 @@ Test cases
:meth:`failIfEqual`; use :meth:`assertNotEqual`.
.. method:: assertAlmostEqual(first, second, *, places=7, msg=None, delta=None)
failUnlessAlmostEqual(first, second, *, places=7, msg=None, delta=None)
.. method:: assertAlmostEqual(first, second, places=7, msg=None, delta=None)
failUnlessAlmostEqual(first, second, places=7, msg=None, delta=None)
Test that *first* and *second* are approximately equal by computing the
difference, rounding to the given number of decimal *places* (default 7),
......@@ -843,8 +843,8 @@ Test cases
:meth:`failUnlessAlmostEqual`; use :meth:`assertAlmostEqual`.
.. method:: assertNotAlmostEqual(first, second, *, places=7, msg=None, delta=None)
failIfAlmostEqual(first, second, *, places=7, msg=None, delta=None)
.. method:: assertNotAlmostEqual(first, second, places=7, msg=None, delta=None)
failIfAlmostEqual(first, second, places=7, msg=None, delta=None)
Test that *first* and *second* are not approximately equal by computing
the difference, rounding to the given number of decimal *places* (default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment