From 1f134f956c27ae19f0172eb98ed08b0b53793a5a Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Sat, 8 Jan 2022 08:20:39 -0500
Subject: [PATCH] match the exact expected length

---
 src/_zkapauthorizer/tests/test_plugin.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/_zkapauthorizer/tests/test_plugin.py b/src/_zkapauthorizer/tests/test_plugin.py
index 3b109f8..0136da1 100644
--- a/src/_zkapauthorizer/tests/test_plugin.py
+++ b/src/_zkapauthorizer/tests/test_plugin.py
@@ -56,7 +56,6 @@ from testtools.matchers import (
     MatchesAll,
     MatchesListwise,
     MatchesStructure,
-    Not,
 )
 from testtools.twistedsupport import succeeded
 from testtools.twistedsupport._deferred import extract_result
@@ -353,6 +352,7 @@ class ClientPluginTests(TestCase):
     Tests for the plugin's implementation of
     ``IFoolscapStoragePlugin.get_storage_client``.
     """
+
     @given(tahoe_configs(), announcements())
     def test_interface(self, get_config, announcement):
         """
@@ -653,7 +653,7 @@ class LeaseMaintenanceServiceTests(TestCase):
         self.assertThat(
             roots,
             MatchesAll(
-                Not(HasLength(0)),
+                HasLength(1),
                 AllMatch(Provides([IFilesystemNode])),
             ),
         )
-- 
GitLab