def _get(url):
     client = application.test_client()
     response = client.get(url)
     return response.data.decode('utf-8')
Beispiel #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