def test_create_sections_at_instantiation(self): sections = ['intro', 'middle', 'end'] self.doc_structure = DocumentStructure(self.name, section_names=sections) # Ensure the sections are attached to the new document structure. for section_name in sections: section = self.doc_structure.get_section(section_name) self.assertEqual(section.name, section_name)
def setUp(self): self.name = 'mydoc' self.doc_structure = DocumentStructure(self.name)
def generate_ref_api_docs(self): self._register_sections() doc_structure = DocumentStructure(self.service_name, self.client.meta.events, section_names=self.sections) return doc_structure.flush_structure()