From c44a167a660763465721432e925261cef0835d2a Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Thu, 11 Jun 2020 15:51:39 -0400 Subject: [PATCH] Remove WebRenderingMixin from WebResultsRendering --- src/allmydata/test/test_checker.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_checker.py b/src/allmydata/test/test_checker.py index 62725da90..2bea98280 100644 --- a/src/allmydata/test/test_checker.py +++ b/src/allmydata/test/test_checker.py @@ -1,4 +1,5 @@ +import re import json import os.path, shutil from twisted.trial import unittest @@ -41,7 +42,12 @@ class TestRequest(Request): self.args = args or {} self.fields = fields or {} -class WebResultsRendering(unittest.TestCase, WebRenderingMixin): +class WebResultsRendering(unittest.TestCase): + + def remove_tags(self, s): + s = re.sub(r'<[^>]*>', ' ', s) + s = re.sub(r'\s+', ' ', s) + return s def create_fake_client(self): sb = StorageFarmBroker(True, None, EMPTY_CLIENT_CONFIG)