in src/loadgenerator/locustfile.py [0:0]
def view_login(self):
"""
load the /login page
fails if already logged on (redirects to /home)
"""
with self.client.get("/login", 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("Logged on: Got redirect to /home")