summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2010-12-29 10:48:50 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2010-12-29 10:48:50 -0500
commit4d4241a9ef27cfb08082d8388831893ff9f8ee94 (patch)
treeee4a23241cf1a39208da5693fa4569efb2e5eec5 /src
parent7ba9e49cada146978c1f02d9c28430fdcf56ab72 (diff)
Test suite cleanup.
Diffstat (limited to 'src')
-rw-r--r--src/beautifulsoup/tests/test_lxml.py26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/beautifulsoup/tests/test_lxml.py b/src/beautifulsoup/tests/test_lxml.py
index 12fd31e..c0ed31e 100644
--- a/src/beautifulsoup/tests/test_lxml.py
+++ b/src/beautifulsoup/tests/test_lxml.py
@@ -1,16 +1,8 @@
from helpers import SoupTest
-from beautifulsoup import BeautifulSoup
-from beautifulsoup.element import SoupStrainer
from beautifulsoup.builder.lxml_builder import LXMLTreeBuilder
-import unittest
-class TestLXMLBuilder(SoupTest):
- def runTest(self):
- self.test_bare_string()
- self.test_tag_nesting()
- self.test_self_closing()
- self.test_soupstrainer()
+class TestLXMLBuilder(SoupTest):
def test_bare_string(self):
self.assertSoupEquals(
@@ -26,19 +18,3 @@ class TestLXMLBuilder(SoupTest):
def test_self_closing(self):
self.assertSoupEquals(
"<p>A <meta> tag</p>", "<p>A <meta /> tag</p>")
-
- def test_soupstrainer(self):
- strainer = SoupStrainer("b")
- soup = BeautifulSoup("A <b>bold</b> <i>statement</i>",
- self.default_builder,
- parseOnlyThese=strainer)
- self.assertEquals(soup.decode(), "<b>bold</b>")
-
- soup = BeautifulSoup("A <b>bold</b> <meta> <i>statement</i>",
- self.default_builder,
- parseOnlyThese=strainer)
- self.assertEquals(soup.decode(), "<b>bold</b>")
-
-
-def test_suite():
- return unittest.TestLoader().loadTestsFromName('__name__')