def METHOD_NAME(self):
    # The lxml TreeBuilder cannot keep track of line numbers from
    # the original markup. Even if you ask for line numbers, we
    # don't have 'em.
    #
    # This means that if you have a tag like <sourceline> or
    # <sourcepos>, attribute access will find it rather than
    # giving you a numeric answer.
    soup = self.soup(
        "\n   <p>\n\n<sourceline>\n<b>text</b></sourceline><sourcepos></p>",
        store_line_numbers=True
    )
    assert "sourceline" == soup.p.sourceline.name
    assert "sourcepos" == soup.p.sourcepos.name