An update on maintenance.
"""Test Build News.
The news and the index are written out and the result checked as the xml that comes out, since what is built here is part of the
document before a renderer ever sees it."""
####################################################################################################################################
import xml.etree.ElementTree as etree
from harness.test import *
from command.build.news import *
from common.error import *
from common.xml import xml_document_parse
NEWS = """ Every release includes a tarball. The release is out. The project continues. An update on maintenance.
July 20, 2026
") # Every item is dated rather than only the first assert_equal([item.find("p/b").text for item in news], ["July 20, 2026", "July 20, 2026", "May 18, 2026", "May 4, 2026"]) #################################################################################################################################### def test_news_index_render(): """The index lists the most recent news items, named and dated the way the news names and dates them.""" index = news_index_render(_index('July 20, 2026 - New Distribution Tarball
' 'July 20, 2026 -
May 18, 2026 -
No news here.
"), _news()) assert_equal(etree.tostring(index, encoding="unicode"), "No news here.