Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
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 (from zero) are usually not the same
as significant digits (measured from the most signficant digit).

If the two objects compare equal then they will automatically
compare almost equal.

src/s/t/stravalib-0.2.2/stravalib/tests/test_model.py   stravalib(Download)
        #print repr(a.max_speed)
 
        self.assertAlmostEqual(1.61, float(uh.kph(a.max_speed)), places=2)
 
    def test_time_intervals(self):

src/s/t/stravalib-HEAD/stravalib/tests/test_model.py   stravalib(Download)
        #print repr(a.max_speed)
 
        self.assertAlmostEqual(1.61, float(uh.kph(a.max_speed)), places=2)
 
    def test_time_intervals(self):