'Helper to make API calls, parse the json and return the result.'

def _get_api_result(self, name, **kwargs):

    url = reverse(name)
    url = urlparams(url, format='json', **kwargs)
    response = self.client.get(url)
    eq_(200, response.status_code)
    return json.loads(response.content)
