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