mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 11:44:11 +00:00
Use docstrings
This commit is contained in:
parent
54e952ceda
commit
6a2ce9efc6
src/allmydata/test/web
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user