def get_response_for_url(self, url):
if not url or "<STR_LIT>" not in url:<EOL><INDENT>raise ValueError("<STR_LIT>" % url)<EOL><DEDENT>render_url = self.BASE_URL + url<EOL>headers = {<EOL>'<STR_LIT>': self.token,<EOL>}<EOL>r = self.session.get(render_url, headers=headers, allow_redirects=False)<EOL>assert r.status_code < <NUM_LIT><EOL>return self.build_django_response_from_requests_response(r)<EOL>
Accepts a fully-qualified url.
Returns an HttpResponse, passing through all headers and the status code.