Skip to content
Snippets Groups Projects
Commit 1f134f95 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

match the exact expected length

parent 6d098bc5
No related branches found
No related tags found
1 merge request!278Port to Python 3
...@@ -56,7 +56,6 @@ from testtools.matchers import ( ...@@ -56,7 +56,6 @@ from testtools.matchers import (
MatchesAll, MatchesAll,
MatchesListwise, MatchesListwise,
MatchesStructure, MatchesStructure,
Not,
) )
from testtools.twistedsupport import succeeded from testtools.twistedsupport import succeeded
from testtools.twistedsupport._deferred import extract_result from testtools.twistedsupport._deferred import extract_result
...@@ -353,6 +352,7 @@ class ClientPluginTests(TestCase): ...@@ -353,6 +352,7 @@ class ClientPluginTests(TestCase):
Tests for the plugin's implementation of Tests for the plugin's implementation of
``IFoolscapStoragePlugin.get_storage_client``. ``IFoolscapStoragePlugin.get_storage_client``.
""" """
@given(tahoe_configs(), announcements()) @given(tahoe_configs(), announcements())
def test_interface(self, get_config, announcement): def test_interface(self, get_config, announcement):
""" """
...@@ -653,7 +653,7 @@ class LeaseMaintenanceServiceTests(TestCase): ...@@ -653,7 +653,7 @@ class LeaseMaintenanceServiceTests(TestCase):
self.assertThat( self.assertThat(
roots, roots,
MatchesAll( MatchesAll(
Not(HasLength(0)), HasLength(1),
AllMatch(Provides([IFilesystemNode])), AllMatch(Provides([IFilesystemNode])),
), ),
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment