def set_url(self, url):
    o = urlparse.urlparse(url)
    self.scheme = o.scheme or self.scheme
    self.host = o.netloc or self.host
    self.path = o.path
    self.update_properties()

    for (name, value) in urlparse.parse_qs(o.query).items():
      assert len(value) == 1
      self.set(name, value[0])
Set full URL for the request.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/webapp/mock_webapp.py/MockRequest.set_url