Python formatting
This commit is contained in:
parent
1f6ecc39ac
commit
cae7191a2b
2 changed files with 3 additions and 8 deletions
|
@ -37,10 +37,7 @@ class Sanitizer(TestCase):
|
|||
parser = InputHtmlParser()
|
||||
parser.feed(input_text)
|
||||
output = parser.get_output()
|
||||
self.assertEqual(
|
||||
output,
|
||||
'<a href="fish.com">yes </a> <i>html</i>'
|
||||
)
|
||||
self.assertEqual(output, '<a href="fish.com">yes </a> <i>html</i>')
|
||||
|
||||
def test_invalid_html(self):
|
||||
"""remove all html when the html is malformed"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue