Lines Matching refs:places
549 def assertAlmostEqual(self, first, second, places=None, msg=None, delta=None):
551 difference rounded to the given number of decimal places
555 Note that decimal places (from zero) are usually not the same
564 if delta is not None and places is not None:
565 raise TypeError("specify delta or places not both")
575 if places is None:
576 places = 7
578 if round(abs(second-first), places) == 0:
581 standardMsg = '%s != %s within %r places' % (safe_repr(first),
583 places)
587 def assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None):
589 difference rounded to the given number of decimal places
593 Note that decimal places (from zero) are usually not the same
598 if delta is not None and places is not None:
599 raise TypeError("specify delta or places not both")
607 if places is None:
608 places = 7
609 if not (first == second) and round(abs(second-first), places) != 0:
611 standardMsg = '%s == %s within %r places' % (safe_repr(first),
613 places)