def METHOD_NAME(self) -> None:
    """This doesn't test every possible use case, only that hitting /account/password
    triggers the password validation code.
    """
    compliant_password = "C0mpl!antpassword"
    not_compliant_password = "notcompliantpassword"
    user_id = self.register_user("kermit", compliant_password)
    tok = self.login("kermit", compliant_password)
    request_data = {
        "new_password": not_compliant_password,
        "auth": {
            "password": compliant_password,
            "type": LoginType.PASSWORD,
            "user": user_id,
        },
    }
    channel = self.make_request(
        "POST",
        "/_matrix/client/r0/account/password",
        request_data,
        access_token=tok,
    )
    self.assertEqual(channel.code, HTTPStatus.BAD_REQUEST, channel.result)
    self.assertEqual(channel.json_body["errcode"], Codes.PASSWORD_NO_DIGIT)