Lines Matching refs:places
884 def assertAlmostEqual(self, first, second, places=None, msg=None,
887 difference rounded to the given number of decimal places
892 Note that decimal places (from zero) are usually not the same
901 if delta is not None and places is not None:
902 raise TypeError("specify delta or places not both")
915 if places is None:
916 places = 7
918 if round(diff, places) == 0:
921 standardMsg = '%s != %s within %r places (%s difference)' % (
924 places,
929 def assertNotAlmostEqual(self, first, second, places=None, msg=None,
932 difference rounded to the given number of decimal places
936 Note that decimal places (from zero) are usually not the same
941 if delta is not None and places is not None:
942 raise TypeError("specify delta or places not both")
953 if places is None:
954 places = 7
955 if not (first == second) and round(diff, places) != 0:
957 standardMsg = '%s == %s within %r places' % (safe_repr(first),
959 places)