def _get(self, url, expected_status_code=200):
    ret = self.session.get(url=url, headers=self.headers)
    if (ret.status_code != expected_status_code):
        raise ConnectionError('Status code {status} for url {url}\n{content}'.format(status=ret.status_code, url=url, content=ret.text))
    return ret
def _get(self, url, expected_status_code=200):
    ret = self.session.get(url=url, headers=self.headers)
    if (ret.status_code != expected_status_code):
        raise ConnectionError('Status code {status} for url {url}\n{content}'.format(status=ret.status_code, url=url, content=ret.text))
    return ret