(self)
| 136 | self.assertEqual(section.name, section_name) |
| 137 | |
| 138 | def test_flush_structure(self): |
| 139 | section = self.doc_structure.add_new_section('mysection') |
| 140 | subsection = section.add_new_section('mysubsection') |
| 141 | self.doc_structure.writeln('1') |
| 142 | section.writeln('2') |
| 143 | subsection.writeln('3') |
| 144 | second_section = self.doc_structure.add_new_section('mysection2') |
| 145 | second_section.writeln('4') |
| 146 | contents = self.doc_structure.flush_structure() |
| 147 | |
| 148 | # Ensure the contents were flushed out correctly |
| 149 | self.assertEqual(contents, b'1\n2\n3\n4\n') |
| 150 | |
| 151 | def test_flush_structure_hrefs(self): |
| 152 | section = self.doc_structure.add_new_section('mysection') |
nothing calls this directly
no test coverage detected