def accept_ride_request(self,person):
        print "#" * 80
        print self.username + ": ACCEPTING A RIDE REQUEST..."
        print "#" * 80
        if isinstance(person,str):
            username = person
        else:
            try:
                username = person['username']
            except __HOLE__:
                username = person['author']['username']
        response = self.client.put('/trips/' +str(self.trip['id'])+ '/participations/'+username+'/',
                                   data={'status':'accept'})
        print "Dycapo Response: \n" + str(response)
        print "#" * 80
        return utils.rest_to_response(response)
dataset/ETHPy150Open dgraziotin/dycapo/tests/classes.py/Driver.accept_ride_request