From 7a387a054eb5c9b86ec20c6b95b0489a0034af13 Mon Sep 17 00:00:00 2001 From: "Fon E. Noel NFEBE" Date: Sat, 11 Mar 2023 23:58:54 +0100 Subject: [PATCH] Fix more inverted assertions Just like in 7c3f6cb4c7fcba278dea93d62a3ddea381835a7f This commit corrects some wronly inverted assertions inside `test/test_storage.py` Signed-off-by: Fon E. Noel NFEBE --- src/allmydata/test/test_storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/allmydata/test/test_storage.py b/src/allmydata/test/test_storage.py index af4d549bf..655753d90 100644 --- a/src/allmydata/test/test_storage.py +++ b/src/allmydata/test/test_storage.py @@ -1816,7 +1816,7 @@ class MutableServer(SyncTestCase): prefix = si[:2] prefixdir = os.path.join(self.workdir("test_remove"), "shares", prefix) bucketdir = os.path.join(prefixdir, si) - self.assertThat(prefixdir, Contains(os.path.exists(prefixdir))) + self.assertTrue(os.path.exists(prefixdir), prefixdir) self.assertFalse(os.path.exists(bucketdir), bucketdir) def test_writev_without_renew_lease(self): @@ -2425,7 +2425,7 @@ class MDMFProxies(AsyncTestCase, ShouldFailMixin): # any point during the process, it should fail to write when we # tell it to write. def _check_failure(results): - self.assertThat(results, Equals(2)) + self.assertThat(results, HasLength(2)) res, d = results self.assertFalse(res) @@ -3191,7 +3191,7 @@ class MDMFProxies(AsyncTestCase, ShouldFailMixin): d.addCallback(lambda ignored: mr.get_verinfo()) def _check_verinfo(verinfo): - self.assertThat(verinfo) + self.assertTrue(verinfo) self.assertThat(verinfo, HasLength(9)) (seqnum, root_hash,