Skip to content

Commit

Permalink
get and post method should pass methods to _request
Browse files Browse the repository at this point in the history
_request function require method to invoke from test client this should
be passed from the function which invokes this method.
  • Loading branch information
copyninja committed Apr 29, 2014
1 parent bab34ba commit eea5f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils.py
Expand Up @@ -15,10 +15,10 @@ def _request(self, method, *args, **kwargs):
return method(*args, **kwargs)

def get(self, *args, **kwargs):
return self._request(*args, **kwargs)
return self._request(self.client.get, *args, **kwargs)

def post(self, *args, **kwargs):
return self._request(*args, **kwargs)
return self._request(self.client.post, *args, **kwargs)

def jpost(self, *args, **kwargs):
return self._request(self.client.post, *args,
Expand Down

0 comments on commit eea5f79

Please sign in to comment.