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

All Samples(40)  |  Call(40)  |  Derive(0)  |  Import(0)
Fail if the two objects are unequal as determined by the '=='
operator.

src/s/t/stravalib-0.2.2/stravalib/tests/functional/test_client_write.py   stravalib(Download)
 
        self.assertIsInstance(a, model.Activity)
        self.assertEquals("test_create_activity#simple", a.name)
        self.assertEquals(now, a.start_date_local)
        self.assertEquals(round(float(uh.miles(15.2)), 2), round(float(uh.miles(a.distance)), 2))
        self.assertEquals(timedelta(hours=3, minutes=4, seconds=5), a.elapsed_time)
 
        self.assertIsInstance(a, model.Activity)
        self.assertEquals("test_update_activity#create", a.name)
 
        update1 = self.client.update_activity(a.id, name="test_update_activivty#update")

src/s/t/stravalib-HEAD/stravalib/tests/functional/test_client_write.py   stravalib(Download)
 
        self.assertIsInstance(a, model.Activity)
        self.assertEquals("test_create_activity#simple", a.name)
        self.assertEquals(now, a.start_date_local)
        self.assertEquals(round(float(uh.miles(15.2)), 2), round(float(uh.miles(a.distance)), 2))
        self.assertEquals(timedelta(hours=3, minutes=4, seconds=5), a.elapsed_time)
 
        self.assertIsInstance(a, model.Activity)
        self.assertEquals("test_update_activity#create", a.name)
 
        update1 = self.client.update_activity(a.id, name="test_update_activivty#update")

src/s/t/stravalib-0.2.2/stravalib/tests/test_model.py   stravalib(Download)
        a.from_dict(d)
 
        self.assertEquals(3, len(a.clubs))
        self.assertEquals('Team Roaring Mouse', a.clubs[0].name)
 
        a.max_speed = 1000 # m/s
        a.average_speed = 1000 # m/s
        self.assertEquals(3600.0, float(uh.kph(a.max_speed)))
        self.assertEquals(3600.0, float(uh.kph(a.average_speed)))
 
        g = model.Gear()
        g.distance = 1000
        self.assertEquals(1.0, float(uh.kilometers(g.distance)))
 
        # Metric Split

src/s/t/stravalib-HEAD/stravalib/tests/test_model.py   stravalib(Download)
        a.from_dict(d)
 
        self.assertEquals(3, len(a.clubs))
        self.assertEquals('Team Roaring Mouse', a.clubs[0].name)
 
        a.max_speed = 1000 # m/s
        a.average_speed = 1000 # m/s
        self.assertEquals(3600.0, float(uh.kph(a.max_speed)))
        self.assertEquals(3600.0, float(uh.kph(a.average_speed)))
 
        g = model.Gear()
        g.distance = 1000
        self.assertEquals(1.0, float(uh.kilometers(g.distance)))
 
        # Metric Split