mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
Make sure it succeeds with _OK_
This commit is contained in:
parent
febfa50a83
commit
5ac7efc6f3
@ -10,12 +10,16 @@ from __future__ import (
|
||||
)
|
||||
|
||||
from testtools.matchers import (
|
||||
Always,
|
||||
Equals,
|
||||
)
|
||||
from testtools.twistedsupport import (
|
||||
succeeded,
|
||||
)
|
||||
|
||||
from twisted.web.http import (
|
||||
OK,
|
||||
)
|
||||
|
||||
from treq.client import (
|
||||
HTTPClient,
|
||||
)
|
||||
@ -23,6 +27,10 @@ from treq.testing import (
|
||||
RequestTraversalAgent,
|
||||
)
|
||||
|
||||
from .matchers import (
|
||||
has_response_code,
|
||||
)
|
||||
|
||||
from ..common import (
|
||||
SyncTestCase,
|
||||
)
|
||||
@ -47,5 +55,5 @@ class StreamingEliotLogsTests(SyncTestCase):
|
||||
"""
|
||||
self.assertThat(
|
||||
self.client.head(b"http:///logs/v1"),
|
||||
succeeded(Always()),
|
||||
succeeded(has_response_code(Equals(OK))),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user