~mdragon/nova/multi-tenant-accounting

« back to all changes in this revision

Viewing changes to nova/tests/api/openstack/common.py

  • Committer: Monsyne Dragon
  • Date: 2011-03-11 19:49:32 UTC
  • mfrom: (752.2.34 nova)
  • Revision ID: mdragon@rackspace.com-20110311194932-iqst41u5jymlu66j
remerge trunk (again). fix issues caused by changes to deserialization calls on controllers. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    def web_request(url, method=None, body=None):
29
29
        req = webob.Request.blank("%s%s" % (base_url, url))
30
30
        if method:
 
31
            req.content_type = "application/json"
31
32
            req.method = method
32
33
        if body:
33
34
            req.body = json.dumps(body)