def test_spine_page_title(self): netilt_xml = NetiltDoc("test_data/nested_navpoints.epub").get_netilt_xml(True) self.assertEqual( netilt_xml.findall(".//page")[9].find("title").text, "CHAPTER 2 Multi-Server Administration" ) self.assertEqual( netilt_xml.findall(".//page")[10].find("title").text, "CHAPTER 3 Data-Tier Applications" )
def test_navpoints_page_title(self): netilt_xml = NetiltDoc("test_data/nested_navpoints.epub").get_netilt_xml(False) self.assertEqual( netilt_xml.findall(".//page")[9].find("title").text, "Overview" ) self.assertEqual( netilt_xml.findall(".//page")[10].find("title").text, "Application and Multi-Server Administration Enhancements" )