def METHOD_NAME(self):
    new_password = " N3wP@55w0rd "
    self.login_user(self.user)
    response = self.client.post(
        self.link,
        data={"new_password": new_password, "password": self.USER_PASSWORD},
    )
    self.assertEqual(response.status_code, 200)
    self.assertIn("Confirm password change", mail.outbox[0].subject)
    for line in [l.strip() for l in mail.outbox[0].body.splitlines()]:
        if line.startswith("http://"):
            token = line.rstrip("/").split("/")[-1]
            break
    else:
        self.fail("E-mail sent didn't contain confirmation url")
    with override_dynamic_settings(
        enable_oauth2_client=True, oauth2_provider="Lorem"
    ):
        response = self.client.get(
            reverse(
                "misago:options-confirm-password-change", kwargs={"token": token}
            )
        )
        self.assertEqual(response.status_code, 403)