def _get(url): client = application.test_client() response = client.get(url) return response.data.decode('utf-8')
def _get(url): client = application.test_client() response = client.get(url, follow_redirects=True) return response.data.decode('utf-8'), response.status_code