def setUp(self):
     super().setUp()
     self.library = Library()
     add_basics(self.library)
     add_html(self.library)
     add_links(self.library)
     add_table_of_contents(self.library)
Пример #2
0
    def __init__(self):
        super().__init__()
        add_basics(self)
        add_html(self)

        self.visit_history = []
        def record(tree, node):
            self.visit_history.append(node.name)

        for tag in self.HTML_TAGS:
            self.processor(tag, record, before_others=True)
        for tag in self.ALIAS_HTML_TAGS:
            self.processor(tag, record, before_others=True)