summaryrefslogtreecommitdiff
path: root/src/beautifulsoup/tests/test_lxml.py
blob: cd22b6f37f32020cb783566a1db703c93dd1f893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Tests to ensure that the lxml tree builder generates good trees."""

from helpers import BuilderInvalidMarkupSmokeTest, BuilderSmokeTest

class TestLXMLBuilder(BuilderSmokeTest):
    """See `BuilderSmokeTest`."""

    def test_bare_string(self):
        # lxml puts a <p> tag around the bare string.
        self.assertSoupEquals(
            "A bare string", "<p>A bare string</p>")


class TestLXMLBuilderInvalidMarkup(BuilderInvalidMarkupSmokeTest):
    """See `BuilderInvalidMarkupSmokeTest`."""