mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-13 08:19:45 +00:00
Use a better assert in status subpath test
This commit is contained in:
parent
d4a02aa1cd
commit
144001f380
@ -1038,7 +1038,13 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
|
||||
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.
|
||||
return self.assertFailure(self.GET("/storage/nodash"), error.Error)
|
||||
d = self.shouldFail2(error.Error,
|
||||
"test_status_path_error",
|
||||
"400 Bad Request",
|
||||
"no '-' in 'nodash'",
|
||||
self.GET,
|
||||
"/status/nodash")
|
||||
return d
|
||||
|
||||
def test_status_numbers(self):
|
||||
drrm = status.DownloadResultsRendererMixin()
|
||||
|
Loading…
Reference in New Issue
Block a user