mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-23 10:40:23 +00:00
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 <fenn25.fn@gmail.com>
This commit is contained in:
parent
3ae574ddef
commit
7a387a054e
@ -1816,7 +1816,7 @@ class MutableServer(SyncTestCase):
|
|||||||
prefix = si[:2]
|
prefix = si[:2]
|
||||||
prefixdir = os.path.join(self.workdir("test_remove"), "shares", prefix)
|
prefixdir = os.path.join(self.workdir("test_remove"), "shares", prefix)
|
||||||
bucketdir = os.path.join(prefixdir, si)
|
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)
|
self.assertFalse(os.path.exists(bucketdir), bucketdir)
|
||||||
|
|
||||||
def test_writev_without_renew_lease(self):
|
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
|
# any point during the process, it should fail to write when we
|
||||||
# tell it to write.
|
# tell it to write.
|
||||||
def _check_failure(results):
|
def _check_failure(results):
|
||||||
self.assertThat(results, Equals(2))
|
self.assertThat(results, HasLength(2))
|
||||||
res, d = results
|
res, d = results
|
||||||
self.assertFalse(res)
|
self.assertFalse(res)
|
||||||
|
|
||||||
@ -3191,7 +3191,7 @@ class MDMFProxies(AsyncTestCase, ShouldFailMixin):
|
|||||||
d.addCallback(lambda ignored:
|
d.addCallback(lambda ignored:
|
||||||
mr.get_verinfo())
|
mr.get_verinfo())
|
||||||
def _check_verinfo(verinfo):
|
def _check_verinfo(verinfo):
|
||||||
self.assertThat(verinfo)
|
self.assertTrue(verinfo)
|
||||||
self.assertThat(verinfo, HasLength(9))
|
self.assertThat(verinfo, HasLength(9))
|
||||||
(seqnum,
|
(seqnum,
|
||||||
root_hash,
|
root_hash,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user