Use docstrings

This commit is contained in:
Sajith Sasidharan 2020-07-16 16:55:12 -04:00
parent 54e952ceda
commit 6a2ce9efc6
2 changed files with 7 additions and 3 deletions
src/allmydata/test/web

View File

@ -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

View File

@ -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",