def METHOD_NAME(self):
    response = self.client.get("/account")
    self.assertEqual(302, response.status_code)
    self.assertEqual(
        "http://localhost/login?next=/account", response.location
    )