""" Test cases for resource type page. """ from unittest import TestCase from atextcrawler.utils.html import clean_body # from atextcrawler.utils.tag import drop_tags class PageCleanTest(TestCase): def test_clean_body_1(self): s = ' Hello world ' r = 'Hello world' self.assertEqual(clean_body(s), r) # def test_drop_tags(self): # s = '
something
else
...
' # r = drop_tags(s) # self.assertEqual(r, '') # s = 'something' # r = drop_tags(s) # self.assertEqual(r, '')