import frappe from frappe.tests import IntegrationTestCase from frappe.utils import get_html_for_route class TestSitemap(IntegrationTestCase): def test_sitemap(self): xml = get_html_for_route("sitemap.xml") self.assertTrue("/about" in xml) self.assertTrue("/contact" in xml)