mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-07 05:28:44 +00:00
Use docstrings
This commit is contained in:
parent
54e952ceda
commit
6a2ce9efc6
@ -1,4 +1,6 @@
|
|||||||
# Tests for code in allmydata.web.status
|
"""
|
||||||
|
Tests for ```allmydata.web.status```.
|
||||||
|
"""
|
||||||
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from twisted.web.template import flattenString
|
from twisted.web.template import flattenString
|
||||||
|
@ -1036,8 +1036,10 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
|
|||||||
return d
|
return d
|
||||||
|
|
||||||
def test_status_path_error(self):
|
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,
|
return self.shouldFail2(error.Error,
|
||||||
"test_status_path_error",
|
"test_status_path_error",
|
||||||
"400 Bad Request",
|
"400 Bad Request",
|
||||||
|
Loading…
Reference in New Issue
Block a user