X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/24e866347ec2355c35e0e39e317946b9b833d2ed..19ed28f37b59e480cebe8f122e07ce18ce536db8:/domfilter_test.py
diff --git a/domfilter_test.py b/domfilter_test.py
index 8daca20..02c33ac 100644
--- a/domfilter_test.py
+++ b/domfilter_test.py
@@ -15,33 +15,12 @@ from domfilter import ApplyDOMFilters
class TestDOMFilters(unittest.TestCase):
def setUp(self) -> None:
- self._html = BeautifulSoup(b'''
-
-
This is the edit box
- This is glowfic
-
-
''', 'html.parser')
self._strike = BeautifulSoup(b'''
Abandon hope and endure.
No. Win.
''', 'html.parser')
- def testStripFooters(self) -> None:
- ApplyDOMFilters("NoFooter", self._html)
- self.assertEqual(list(self._html.stripped_strings),
- ["This is the edit box", "This is glowfic"])
-
- def testStripEditBoxes(self) -> None:
- ApplyDOMFilters("NoEdit", self._html)
- self.assertEqual(list(self._html.stripped_strings),
- ["This is glowfic", "This is the footer"])
-
- def testStripFootersAndEditBoxes(self) -> None:
- ApplyDOMFilters("NoEdit,NoFooter", self._html)
- self.assertEqual(list(self._html.stripped_strings),
- ["This is glowfic"])
-
def testStrike(self) -> None:
ApplyDOMFilters('Strike', self._strike)
s = self._strike.find_all('s')