From: Thomas Jarosch Date: Mon, 27 Jan 2020 16:05:18 +0000 (+0100) Subject: Extend unit test for larger than GCM encrytion size X-Git-Tag: v2.2~7^2~13 X-Git-Url: http://developer.intra2net.com/git/?p=python-delta-tar;a=commitdiff_plain;h=ca520c21fc7c6058b2cf28cfd8b6646d96e9afcf Extend unit test for larger than GCM encrytion size Add a few corner cases in addition to the existing test: * MAX_SIZE-1 * MAX_SIZE * 2*MAX_SIZE + 1 --- diff --git a/testing/test_deltatar.py b/testing/test_deltatar.py index 9ae02a7..75e53c2 100644 --- a/testing/test_deltatar.py +++ b/testing/test_deltatar.py @@ -191,8 +191,11 @@ class DeltaTarTest(BaseTest): self.hash = dict () os.makedirs ("source_dir2") for f, s in [("empty" , 0) # 1 tar objects - ,("slightly_larger", new_max + 1) # 2 - ,("twice" , 2 * new_max) # 3 + ,("almost_large" , new_max - 1) # 2 + ,("large" , new_max) # 3 + ,("slightly_larger", new_max + 1) # 4 + ,("twice" , 2 * new_max) # 5 + ,("twice_plus_one" , (2 * new_max) + 1) # 6 ]: f = "source_dir2/%s" % f self.hash [f] = self.create_file (f, s)