~vishvananda/nova/lp827024

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Matthew Hooker
  • Date: 2011-08-10 14:53:53 UTC
  • mfrom: (1355.2.24 pylint-fixes)
  • Revision ID: tarmac-20110810145353-rmc0lkjirgunxe08
These fixes are the result of trolling the pylint violations here

https://jenkins.openstack.org/job/nova-pylint-errors/violations/

Show diffs side-by-side

added added

removed removed

Lines of Context:
819
819
        self.app = app
820
820
        self.host = host
821
821
 
822
 
    def request(self, method, path, body="", headers={}):
 
822
    def request(self, method, path, body="", headers=None):
823
823
        """
824
824
        Requests made via this connection actually get translated and routed
825
825
        into our WSGI app, we then wait for the response and turn it back into
826
826
        an `httplib.HTTPResponse`.
827
827
        """
 
828
        if not headers:
 
829
            headers = {}
 
830
 
828
831
        req = webob.Request.blank(path)
829
832
        req.method = method
830
833
        req.headers = headers