@property
    def url(self):
        """Shortcut for password-reset-confirm url."""
        form = self.app.get(
            reverse("auth_password_reset")).forms["resetpasswordform"]
        form["email"] = "user@example.com"
        form.submit(status=302)

        for line in mail.outbox[0].body.splitlines():
            if line in "://":
                return line.strip()

        self.fail("No password reset confirm URL found in reset email.")
dataset/ETHPy150Open mozilla/moztrap/tests/view/users/test_views.py/PasswordResetConfirmTest.url/swapped operands of `in`