From 04e45f065ab496acf8aadb9f4cca0f60f55c41a2 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Mon, 22 Nov 2021 07:56:51 -0500 Subject: [PATCH] document `compare_leases_without_timestamps` --- src/allmydata/test/test_storage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/allmydata/test/test_storage.py b/src/allmydata/test/test_storage.py index 92176ce52..91c7adb7f 100644 --- a/src/allmydata/test/test_storage.py +++ b/src/allmydata/test/test_storage.py @@ -1361,6 +1361,10 @@ class MutableServer(unittest.TestCase): 2: [b"2"*10]}) def compare_leases_without_timestamps(self, leases_a, leases_b): + """ + Assert that, except for expiration times, ``leases_a`` contains the same + lease information as ``leases_b``. + """ for a, b in zip(leases_a, leases_b): # The leases aren't always of the same type (though of course # corresponding elements in the two lists should be of the same