def _get_response_data(self, response): assert isinstance(response, JsonResponse) return json.loads(response.content.decode('utf-8'))