diff --git a/src/allmydata/test/web/test_logs.py b/src/allmydata/test/web/test_logs.py index b76cb13b6..ad1cc8a89 100644 --- a/src/allmydata/test/web/test_logs.py +++ b/src/allmydata/test/web/test_logs.py @@ -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))), )