diff options
author | Leonard Richardson <leonardr@segfault.org> | 2023-01-25 15:07:21 -0500 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2023-01-25 15:07:21 -0500 |
commit | 5fb5a9564741d4351fde8d828a6fd1944734807d (patch) | |
tree | adf1cf97b4d591975d933175152aeab4cec8bc66 /src/beautifulsoup/tests/test_lxml.py | |
parent | 9b4eb2db8a830ff4522de4b744548039fdf5a2e6 (diff) |
Removed very copy of the code that was imported as part of the bzr import but not removed.
Diffstat (limited to 'src/beautifulsoup/tests/test_lxml.py')
-rw-r--r-- | src/beautifulsoup/tests/test_lxml.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/beautifulsoup/tests/test_lxml.py b/src/beautifulsoup/tests/test_lxml.py deleted file mode 100644 index b53ee42..0000000 --- a/src/beautifulsoup/tests/test_lxml.py +++ /dev/null @@ -1,28 +0,0 @@ -"""Tests to ensure that the lxml tree builder generates good trees.""" - -from beautifulsoup.testing 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>") - - def test_foo(self): - isolatin = """<html><meta http-equiv="Content-type" content="text/html; charset=ISO-Latin-1" />Sacr\xe9 bleu!</html>""" - soup = self.soup(isolatin) - - utf8 = isolatin.replace("ISO-Latin-1".encode(), "utf-8".encode()) - utf8 = utf8.replace("\xe9", "\xc3\xa9") - - print soup - - -class TestLXMLBuilderInvalidMarkup(BuilderInvalidMarkupSmokeTest): - """See `BuilderInvalidMarkupSmokeTest`.""" - |