Did I find the right examples for you? yes no

All Samples(35)  |  Call(35)  |  Derive(0)  |  Import(0)

src/d/y/dycapo-HEAD/tests/test_multiple_matching.py   dycapo(Download)
    def setup_method(self,method):
        self.driver.location = classes.Location(georss_point=self.driver_position)
        self.driver.destination = classes.Location(georss_point=self.driver_destination,point='dest')
        self.rider5.location = classes.Location(georss_point=self.rider_position)
        self.rider5.destination = classes.Location(georss_point=self.rider_destination,point='dest')
        self.rider6.location = classes.Location(georss_point=self.rider_position)

src/d/y/dycapo-HEAD/tests/test_simple_matching.py   dycapo(Download)
    def setup_method(self,method):
        self.driver.location = classes.Location(georss_point=self.driver_position)
        self.driver.destination = classes.Location(georss_point=self.driver_destination,point='dest')
        self.rider.location = classes.Location(georss_point=self.rider_position)
        self.rider.destination = classes.Location(georss_point=self.rider_destination,point='dest')
        self.rider2.location = classes.Location(georss_point=self.rider_position)

src/d/y/dycapo-HEAD/tests/test_rider.py   dycapo(Download)
    def setup_method(self,method):
        self.driver.location = classes.Location(georss_point=self.driver_position)
        self.driver.destination = classes.Location(georss_point=self.driver_destination,point='dest')
        self.rider.location = classes.Location(georss_point=self.rider_position)
        self.rider.destination = classes.Location(georss_point=self.rider_destination,point='dest')
 
    def test_position(self):
        old_position = self.rider.location
        new_position = classes.Location(georss_point='46.000 11.000')

src/d/y/dycapo-HEAD/tests/test_driver.py   dycapo(Download)
    def setup_method(self,method):
        self.driver.location = classes.Location(georss_point=self.driver_position)
        self.driver.destination = classes.Location(georss_point=self.driver_destination,point='dest')
        self.rider.location = classes.Location(georss_point=self.rider_position)
        self.rider.destination = classes.Location(georss_point=self.rider_destination,point='dest')
 
    def test_position(self):
        old_position = self.driver.location
        new_position = classes.Location(georss_point='46.000 11.000')

src/d/y/dycapo-HEAD/tests/test_matching_algorithm.py   dycapo(Download)
    def setup_method(self,method):
        self.driver.location = classes.Location(georss_point=self.driver_position)
        self.driver.destination = classes.Location(georss_point=self.driver_destination,point='dest')
        self.rider.location = classes.Location(georss_point=self.rider_position)
        self.rider.destination = classes.Location(georss_point=self.rider_destination,point='dest')
            self.driver.position_lat += 0.000100
            self.driver_position = utils.georss_point_from_coords(self.driver.position_lat,self.driver.position_lon)
            self.driver.location = classes.Location(georss_point=self.driver_position)
            response = self.driver.update_position(location=self.driver.location)
            assert response['code'] == response_codes.CREATED or response['code'] == response_codes.ALL_OK