From 1b7a35e7730eaab6ed0bf516b1c9635561067036 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 28 Jul 2020 07:18:01 -0400 Subject: [PATCH] Do not strip tags where it is not necessary --- src/allmydata/test/test_checker.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/allmydata/test/test_checker.py b/src/allmydata/test/test_checker.py index bc0dc0482..c22d42914 100644 --- a/src/allmydata/test/test_checker.py +++ b/src/allmydata/test/test_checker.py @@ -175,12 +175,10 @@ class WebResultsRendering(unittest.TestCase): lcr = web_check_results.LiteralCheckResultsRendererElement() html = self.render_element(lcr) - s = self.remove_tags(html) - self.failUnlessIn("Literal files are always healthy", s) + self.failUnlessIn("Literal files are always healthy", html) html = self.render_element(lcr, args={"return_to": ["FOOURL"]}) - s = self.remove_tags(html) - self.failUnlessIn("Literal files are always healthy", s) + self.failUnlessIn("Literal files are always healthy", html) self.failUnlessIn('Return to file.', html) c = self.create_fake_client()