From 6a2ce9efc6d897348d3eaac1209d8862e1ad65aa Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Thu, 16 Jul 2020 16:55:12 -0400 Subject: [PATCH] Use docstrings --- src/allmydata/test/web/test_status.py | 4 +++- src/allmydata/test/web/test_web.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/allmydata/test/web/test_status.py b/src/allmydata/test/web/test_status.py index 0779e7d80..7f4227f17 100644 --- a/src/allmydata/test/web/test_status.py +++ b/src/allmydata/test/web/test_status.py @@ -1,4 +1,6 @@ -# Tests for code in allmydata.web.status +""" +Tests for ```allmydata.web.status```. +""" from bs4 import BeautifulSoup from twisted.web.template import flattenString diff --git a/src/allmydata/test/web/test_web.py b/src/allmydata/test/web/test_web.py index f83c44b2f..f0d5c10dc 100644 --- a/src/allmydata/test/web/test_web.py +++ b/src/allmydata/test/web/test_web.py @@ -1036,8 +1036,10 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi return d def test_status_path_error(self): - # Expect an error, because path is expected to be of the form - # "/status/{up,down,..}-%number", with a hyphen. + """ + Expect an error, because path is expected to be of the form + "/status/{up,down,..}-%number", with a hyphen. + """ return self.shouldFail2(error.Error, "test_status_path_error", "400 Bad Request",