diff --git a/src/allmydata/test/test_checker.py b/src/allmydata/test/test_checker.py index 75619beaa..ba212c65e 100644 --- a/src/allmydata/test/test_checker.py +++ b/src/allmydata/test/test_checker.py @@ -83,7 +83,7 @@ class WebResultsRendering(unittest.TestCase): return unittest.TestCase().successResultOf(d) def test_literal(self): - lcr = web_check_results.LiteralCheckResultsElement() + lcr = web_check_results.LiteralCheckResultsRendererElement() html = self.render_element(lcr) s = self.remove_tags(html) diff --git a/src/allmydata/web/check_results.py b/src/allmydata/web/check_results.py index db6b28796..89bc41b79 100644 --- a/src/allmydata/web/check_results.py +++ b/src/allmydata/web/check_results.py @@ -221,7 +221,7 @@ class LiteralCheckResultsRenderer(MultiFormatResource, ResultsBase): self._client = client def render_HTML(self, req): - return renderElement(req, LiteralCheckResultsElement()) + return renderElement(req, LiteralCheckResultsRendererElement()) def render_JSON(self, req): req.setHeader("content-type", "text/plain") @@ -229,12 +229,12 @@ class LiteralCheckResultsRenderer(MultiFormatResource, ResultsBase): return json.dumps(data, indent=1) + "\n" -class LiteralCheckResultsElement(Element): +class LiteralCheckResultsRendererElement(Element): loader = XMLFile(FilePath(__file__).sibling("literal-check-results.xhtml")) def __init__(self): - super(LiteralCheckResultsElement, self).__init__() + super(LiteralCheckResultsRendererElement, self).__init__() @renderer def return_to(self, req, tag):