MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / assertAlmostEqual

Method assertAlmostEqual

Lib/unittest/case.py:527–563  ·  view source on GitHub ↗

Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero, or by comparing that the between the two objects is more than the given delta. Note that decimal places

(self, first, second, places=None, msg=None, delta=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

test_AlmostEqualMethod · 0.80
test_endian_floatMethod · 0.80
check_typeMethod · 0.80

Calls 3

_formatMessageMethod · 0.95
safe_reprFunction · 0.85
roundFunction · 0.85

Tested by 4

test_AlmostEqualMethod · 0.64
test_endian_floatMethod · 0.64
check_typeMethod · 0.64