aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/cavp.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-02-14 00:32:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-02-14 00:32:19 +0300
commit734aeb3b184cef8c58f947bfa83dfd225ebaa065 (patch)
tree35fcfbe2a281abd1c47fe828a81391e132c7c80a /test/cavp.py
parenttest: refactoring (diff)
downloadaes-tools-734aeb3b184cef8c58f947bfa83dfd225ebaa065.tar.gz
aes-tools-734aeb3b184cef8c58f947bfa83dfd225ebaa065.zip
test: refactoring
Diffstat (limited to '')
-rw-r--r--test/cavp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cavp.py b/test/cavp.py
index 88cc0ee..36ab6f7 100644
--- a/test/cavp.py
+++ b/test/cavp.py
@@ -174,7 +174,7 @@ class TestArchive(zipfile.ZipFile):
def __init__(self, path):
super().__init__(path)
- def list_test_files(self):
+ def enum_test_files(self):
with TemporaryDirectory() as tmp_dir:
for p in self.namelist():
yield TestFile(self.extract(p, tmp_dir))
@@ -202,7 +202,7 @@ if __name__ == '__main__':
archive = TestArchive(args.archive)
exit_codes = []
- for test_file in archive.list_test_files():
+ for test_file in archive.enum_test_files():
exit_codes.append(test_file.run_encryption_tests(tools, args.use_boxes))
exit_codes.append(test_file.run_decryption_tests(tools, args.use_boxes))