in src/loadgenerator/locustfile.py [0:0]
def view_index(self):
"""
load the / page
fails if not logged on (redirects to /login)
"""
with self.client.get("/", catch_response=True) as response:
for r_hist in response.history:
if r_hist.status_code > 200 and r_hist.status_code < 400:
response.failure("Not logged on: Got redirect to /login")