Home | History | Annotate | Download | only in shared

Lines Matching refs:method

28     def _expected_status(self, method):
29 if method == 'post':
31 if method == 'delete':
36 def raw_request(self, method, uri, **kwargs):
37 method = method.lower()
38 if method == 'put':
42 # trick to override the method.
43 method = 'post'
46 client_method = getattr(self.client, method)
50 def request(self, method, uri, encode_body=True, **kwargs):
51 expected_status = self._expected_status(method)
64 response = self.raw_request(method, full_uri, **kwargs)