Lines Matching refs:places
527 def assertAlmostEqual(self, first, second, places=None, msg=None, delta=None):
529 difference rounded to the given number of decimal places
533 Note that decimal places (from zero) are usually not the same
542 if delta is not None and places is not None:
543 raise TypeError("specify delta or places not both")
553 if places is None:
554 places = 7
556 if round(abs(second-first), places) == 0:
559 standardMsg = '%s != %s within %r places' % (safe_repr(first),
561 places)
565 def assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None):
567 difference rounded to the given number of decimal places
571 Note that decimal places (from zero) are usually not the same
576 if delta is not None and places is not None:
577 raise TypeError("specify delta or places not both")
585 if places is None:
586 places = 7
587 if not (first == second) and round(abs(second-first), places) != 0:
589 standardMsg = '%s == %s within %r places' % (safe_repr(first),
591 places)